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

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

Open
Mhajji92 opened this issue Nov 5, 2024 · 0 comments

Comments

@Mhajji92
Copy link

Mhajji92 commented Nov 5, 2024

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!

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