8000 GridSearchCV: allow for passing extra vectors to score/loss function? · Issue #1179 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
GridSearchCV: allow for passing extra vectors to score/loss function? #1179
Closed
@aldanor

Description

@aldanor

There are situations when having vectors y_pred and y_true is not sufficient to compute the score/loss function. An easy example would be a mean (squared / absolute) error weighted by a pre-defined column of weights. In this case, this column vector has to be sliced by the cross-validator the same way X and y are sliced, and the sliced vector is to be passed to the score/loss function. While I understand that GridSearchCV can be (fairly painlessly) modified to account for this (say, an optional parameter to the score/loss func), I was wondering if anyone else ever faced the same problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0