hatzakislab / DeepFRET-GUI

GNU General Public License v3.0
8 stars 5 forks source link

HMM fails #23

Open AI-rrr opened 3 years ago

AI-rrr commented 3 years ago

B85JZ8UX_F00000024 [1].tif_65(181, 101).txt no-Alex configuration, with the following error:

Fitting HMM with E setting number of components 1 weights: [1.] means: [0.74599574] sigs: [0.19705138] Transition matrix: [[1.]] State means: [0.74599574] State sigmas: [0.19704884] Traceback (most recent call last): File "/DeepFRET-GUI/src/main/python/main.py", line 176, in exit_code = ctxt.run() File "/DeepFRET-GUI/src/main/python/main.py", line 150, in run return self.app.exec() File "\DeepFRET-GUI\src\main\python\widgets\trace_window.py", line 334, in fitCheckedTracesHiddenMarkovModel self.windows["TransitionDensityWindow"].refreshPlot() File "\DeepFRET-GUI\src\main\python\widgets\transition_density_window.py", line 343, in refreshPlot self.setClusteredTransitions() File "\DeepFRET-GUI\src\main\python\widgets\transition_density_window.py", line 159, in setClusteredTransitions m.fit(half[["e_before", "e_after"]]) File "\DeepFRET-GUI\venv2\lib\site-packages\sklearn\cluster_kmeans.py", line 1033, in fit accept_large_sparse=False) File "\DeepFRET-GUI\venv2\lib\site-packages\sklearn\base.py", line 420, in _validate_data X = check_array(X, check_params) File "\DeepFRET-GUI\venv2\lib\site-packages\sklearn\utils\validation.py", line 72, in inner_f return f(kwargs) File "\DeepFRET-GUI\venv2\lib\site-packages\sklearn\utils\validation.py", line 653, in check_array context)) ValueError: Found array with 0 sample(s) (shape=(0, 2)) while a minimum of 1 is required.