8000 grid_search: feeding parameters to scorer functions · Issue #8158 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
grid_search: feeding parameters to scorer functions #8158
Closed
@xavierfontaine

Description

@xavierfontaine

Description

GridSearchCV and RandomizedSearchCV do not allow for passing parameters to the scorer function. This could be made possible by adding an extra scorer_params, similar to the fit_params argument.

For consistency with fit_params, special care would have to be paid to sample weights. Weights fed through fit_params are currently well-distributed across training folds. Similarly, weights fed through scorer_params would have to be distributed across validation folds.

Is adding this feature under consideration?

If not, should I give it a try?

(Nota: follow-up issue to the closed #8156. I believed the change in focus required a new thread.)

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