optinist icon indicating copy to clipboard operation
optinist copied to clipboard

PCA issue

Open Miles-and-miles-away opened this issue 2 years ago • 1 comments

Issue running PCA on example data File "...optinist/core/nwb/nwb_creater.py", line 375, in set_nwbconfig nwbfile = NWBCreater.column( TypeError: column() got an unexpected keyword argument 'discription' Same issue with TSNE

Miles-and-miles-away avatar Nov 13 '23 02:11 Miles-and-miles-away

rerunning I now get this issue line 146, in _assert_all_finite raise ValueError(msg_err) ValueError: Input X contains NaN. PCA 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

Miles-and-miles-away avatar Nov 13 '23 05:11 Miles-and-miles-away

Fixed in https://github.com/arayabrain/barebone-studio/pull/611

milesAraya avatar Apr 18 '25 05:04 milesAraya