yzhao062 / pyod

A Python Library for Outlier and Anomaly Detection, Integrating Classical and Deep Learning Techniques
http://pyod.readthedocs.io
BSD 2-Clause "Simplified" License
8.61k stars 1.37k forks source link

ValueError: "Input contains NaN" when calling VAE.fit() in a loop for anomaly detection #609

Open Mhajji92 opened 3 weeks ago

Mhajji92 commented 3 weeks ago

Hi everyone,

I'm encountering an issue where I get the error "ValueError: Input contains NaN" when calling VAE.fit(X) inside a for-loop for anomaly detection.

I've verified that my dataset, X, does not contain any NaN values. According to the documentation, "y is ignored in unsupervised methods" but it seems that in pairwise_distances_no_broadcast function, y is still being checked with Y = check_array(Y), which causing this issue.

Any insights into how to resolve it would be greatly appreciated.

Thank you!