WenjieDu / BrewPOTS

The tutorials for PyPOTS, guide you to model partially-observed time series datasets.
https://pypots.com
BSD 3-Clause "New" or "Revised" License
53 stars 8 forks source link

Error in CRLI for clustering #17

Closed LinglongQian closed 2 months ago

LinglongQian commented 4 months ago

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 commented 4 months ago

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

github-actions[bot] commented 4 months ago

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?

WenjieDu commented 2 months ago

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.