Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCA issue #591

Open
milesOIST opened this issue Nov 13, 2023 · 1 comment
Open

PCA issue #591

milesOIST opened this issue Nov 13, 2023 · 1 comment

Comments

@milesOIST
Copy link
Collaborator

milesOIST commented Nov 13, 2023

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

@milesOIST
Copy link
Collaborator Author

milesOIST commented Nov 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant