summaryrefslogtreecommitdiff
path: root/demo.py
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-07-21 12:58:54 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-07-21 12:58:54 +0200
commitc5c6b4f2f2640319a51924349055678e2b924514 (patch)
treeda7c77caede944b8287646a138523010419e10dc /demo.py
parent7630de3416f5e8a9b44def854600f61483388d1b (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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo.py b/demo.py
index a15fa72..86b1c61 100644
--- a/demo.py
+++ b/demo.py
@@ -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)