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

Error in CRLI for clustering #17

Closed
LinglongQian opened this issue May 21, 2024 · 3 comments
Closed

Error in CRLI for clustering #17

LinglongQian opened this issue May 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@LinglongQian
Copy link
Contributor

the testing stage

crli_results = crli.predict(dataset_for_testing)
crli_prediction = crli_results["clustering"]

--> [2]crli_results = crli.predict(dataset_for_testing)
--> [426]clustering = self.model.kmeans.fit_predict(clustering_latent)
--> [175]raise ValueError(msg_err)

ValueError: Input X contains NaN.
KMeans 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.

@WenjieDu
Copy link
Owner

Hi there 👋,

Thank you so much for your attention to PyPOTS and BrewPOTS! You can follow me on GitHub to receive the latest news of PyPOTS. If you find PyPOTS and BrewPOTS helpful to your work, please star our repositories. Your star is your recognition, which can help more people notice PyPOTS and grow PyPOTS community. It matters and is definitely a kind of contribution to the community.

I have received your message and will respond ASAP. Thank you for your patience! 😃

Best,
Wenjie

Copy link

github-actions bot commented Jun 5, 2024

This issue had no activity for 14 days. It will be closed in 1 week unless there is some new activity. Is this issue already resolved?

@github-actions github-actions bot added the stale label Jun 5, 2024
@WenjieDu WenjieDu added bug Something isn't working and removed stale labels Jun 5, 2024
@WenjieDu
Copy link
Owner

I'm closing this issue for now because we cannot reproduce this error. I assume this may be caused by the unstable performance of CRLI.

Reopening this issue is welcome if error reproducing is possible.

@WenjieDu WenjieDu closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants