8000 Scoring functions don't know classes_ · Issue #6231 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
Scoring functions don't know classes_ #6231
Open
@pkch

Description

@pkch

Moving the discussion with @amueller from pydata/patsy#77 (comment).

Proposing to:

  • add an optional 'labels' argument to log_loss
  • add an argument to make_scorer to enable passing labels argument to the custom loss function

Related to this - perhaps also allow make_scorer's need_threshold = True to be used for non-binary classification problems. Not sure why it's limited to binary. Totally meaningful for multi-class situations, where the metric might use the decision function to evaluate based on the rank order or something (for example, SVC doesn't have a cheap predict_proba, but has a cheap decision_function, so it would allow it to be used with rank-based metris). From make_scorer perspective, it just seems like a completely arbitrary restriction because it shouldn't care about what the custom loss function does with the decision_function output.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0