Skip to content

make cross_val_predict use cross_validate #27000

@adrinjalali

Description

@adrinjalali

Right now cross_val_score is a wrapper for cross_validate, but cross_val_predict has its own implementation.

We could make it also a wrapper around cross_validate, but for that to happen, we need to make cross_validate also return predictions. For that, we would also need to be able to pass y_pred, y_true to scorers instead of passing the estimator, which would also remove the need to cache in _MultimetricScorer and make things quite a bit cleaner.

cc @glemaitre

xref: #26896 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIModerateAnything that requires some knowledge of conventions and best practices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions