You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for this great drug perturbation prediction approach.
I am trying to apply the CPA model on my RNA-Seq data but unfortunately while training the data with my data I get the error:
"ValueError: Input X contains NaN.
NearestNeighbors 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"
When I checked my data again for NaNs, I couldn't find any missing values. Do you have any idea what could be wrong? How important is the introduction of adata.uns or the split columns in the adata.obs?
I would be grateful for any help!
The text was updated successfully, but these errors were encountered:
Hi! Thanks for this great drug perturbation prediction approach.
I am trying to apply the CPA model on my RNA-Seq data but unfortunately while training the data with my data I get the error:
"ValueError: Input X contains NaN.
NearestNeighbors 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"
When I checked my data again for NaNs, I couldn't find any missing values. Do you have any idea what could be wrong? How important is the introduction of adata.uns or the split columns in the adata.obs?
I would be grateful for any help!
The text was updated successfully, but these errors were encountered: