Closed topohl closed 1 year ago
Hi,
Thanks for using A-SOiD. Can you please post the entire error message and describe at what step precisely this happened? Did it happen right at the beginning of that step or after a few steps?
The most likely scenario is that the NaN comes from pose estimation, but we are cleaning the file during import.
Did you alter the data.sav
file in any way?
The annotation file could also contain NaN values, but it's less likely. So if you can, could you verify whether the original CSV file contains any NaN?
Thank you for getting back this quickly,
I'm encountering the issue right when selecting "Classify" in the active learning tab.
The error message that is popping up is the following:
Traceback:
File "C:\Users\topohl\Anaconda3\envs\asoid\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 557, in _run_script
exec(code, module.dict)
File "C:\Users\topohl\Anaconda3\envs\asoid\lib\site-packages\asoid\app.py", line 332, in
I've added the more extensive console information:
I did not alter the data.sav file and also checked the annotation file for NaN.
All the best, Tobias
I am at a conference this week but will get back to you ASAP. In the mean time, I recommend updating to the newest version of ASOID and checking whether the error still exists. There is an explanation in the readme on how to update A-SOID.
Thanks! I updated asoid to 0.2.1 now, the error, however still occurs (also on 0.1.0 and 0.2.0). All the best for the conference!
Hey, when training a classifier with active learning I get the following error:
ValueError: Input X contains NaN. RandomForestClassifier does not accept missing values encoded as NaN natively. For supervised learning, you might want to consider sklearn.ensemble.HistGradientBoostingClassifier and Regressor which accept missing values encoded as NaNs natively. Alternatively, it is possible to preprocess the data, for instance by using an imputer transformer in a pipeline or drop samples with missing values. See https://scikit-learn.org/stable/modules/impute.html You can find a list of all estimators that handle NaN values at the following page: https://scikit-learn.org/stable/modules/impute.html#estimators-that-handle-nan-values
The annotation was exported using Boris and tracking data was generated using sleap. The config.ini looks as follows: config.ini.txt
I would appreciate your help greatly and many thanks already!