Skip to content

Partial Least Square - model_selection.cross_val_score true_divide error #1

Description

@sebnaze

Hi, just running the partial_least_squares.py example, line 34 fails with
site-packages/sklearn/cross_decomposition/_pls.py:83: RuntimeWarning: invalid value encountered in true_divide
site-packages/sklearn/model_selection/_validation.py:696: UserWarning: Scoring failed. The score on this train-test partition for these parameters will be set to nan.
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').

sklearn.version = 0.24.2
pandas.version = 1.3.0

dataset was imported ok, no bizarre values in there.. any clue? thanks

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