Skip to content

ValueError: Input contains NaN, infinity or a value too large for dtype('float32'). #5

@honghongym

Description

@honghongym

KNN_classifier.fit(train_features.cpu().detach().numpy(), train_labels) # .cpu().detach().numpy(),程序跑到这行代码的时候报了错,我看了下train_features里面的值全是nan是咋回事啊

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