diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-07-21 12:58:54 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-07-21 12:58:54 +0200 |
commit | c5c6b4f2f2640319a51924349055678e2b924514 (patch) | |
tree | da7c77caede944b8287646a138523010419e10dc /demo.py | |
parent | 7630de3416f5e8a9b44def854600f61483388d1b (diff) |
Major refactoring.
Better and more consistent naming. Some functions that were used only once were factored in.
Diffstat (limited to 'demo.py')
-rw-r--r-- | demo.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,7 @@ from otsu2018 import load_Otsu2018_spectra, Clustering if __name__ == '__main__': print('Loading spectral data...') - sds = load_Otsu2018_spectra('CommonData/spectrum_m.csv', every_nth=10) + sds = load_Otsu2018_spectra('CommonData/spectrum_m.csv', every_nth=50) shape = SpectralShape(380, 730, 10) print('Initializing the clustering...') @@ -16,7 +16,7 @@ if __name__ == '__main__': print('Clustering...') before = clustering.root.total_reconstruction_error() - clustering.do_best_splits(8) + clustering.optimise(2) after = clustering.root.total_reconstruction_error() print('Error before: %g' % before) |