Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Make _binary_clf_curve a "public" method? #16470

Copy link
Copy link
@Kornel

Description

@Kornel
Issue body actions

Currently sklearn.metrics.ranking._binary_clf_curve is (the way I understand the underscore) an internal API method.

Whenever there is a need to work with a different tradeoff than precision / recall or roc or when you need custom metrics for all thresholds, this method is a perfect fit, and the underscore in front of it makes me wonder if I can be confident it will not change in future versions :-)

I need to compute for instance (FP+TN)/(TN+FN+FP) at different thresholds and other use cases could be e.g. these)

I think making this method part of the public API would be beneficial for the community.

p.s.
Tensorflow used to have e.g. tensorflow.contrib.metrics.python.ops.metric_ops.precision_recall_at_equal_thresholds now they have https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/metrics_impl.py#L1792 etc.

zzz4zzz, Zmeos, hellenesherman, seyoung-solteq, marcospiau and 9 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.