Skip to content

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

@Mhajji92

Description

@Mhajji92

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions