-
Notifications
You must be signed in to change notification settings - Fork 53
y_test, y_true args removed from roc constructor #135
y_test, y_true args removed from roc constructor #135
Conversation
Pull Request Test Coverage Report for Build 3902708281Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@yafimvo please address |
…_values_removed_from_roc_init
…_values_removed_from_roc_init
@idomic let's move this conversation here. I don't think we need to combine issue #98 with this since this one has a lot of changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
Is there documentation? That's the only thing I was missing. @edublancas if there's any comments now's the time. |
@yafimvo I also don't see a changelog entry. |
src/sklearn_evaluation/plot/roc.py
Outdated
from sklearn_evaluation import __version__ | ||
import json | ||
from pathlib import Path | ||
from warnings import warn # noqa | ||
from ..plot.plot import AbstractPlot, AbstractComposedPlot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're no longer using relative imports, please change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
also changed it in src/sklearn_evaluation/plot/classification.py
src/sklearn_evaluation/plot/roc.py
Outdated
For example, if ``y_true = [2, 2, 1, 0, 0, 1, 2]``, then the | ||
first column in y_score must contain the scores for class 0, | ||
second column for class 1 and so on. | ||
|
||
Examples | ||
-------- | ||
.. plot:: ../examples/roc_new_api.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's update this example so it shows how the new API works (using from_raw_data).
- roc for binary classification
- roc for multi-class
- comparing two binary classifiers (plot1 + plot2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, the issue there is the error message.
Replaced n_clusters to range_n_clusters in plot.elbow_curve (ploomber#182) * range_n_clusters added to elbow_curve signature * reversed auto lint changes * deprecation warning added to docs * deprecation note fixed Co-authored-by: yafim <[email protected]> Updating ROC constructor, removed y_test, y_true args (ploomber#135) * y_test, y_true args removed from roc constructor * AbstractPlot added to ROC * roc_rates_n_classes removed * tests added, code cleaned * examples added, relative import fixed, changelog updated Co-authored-by: yafim <[email protected]> Co-authored-by: Ido M <[email protected]> baseline image updated changelog updated
Replaced n_clusters to range_n_clusters in plot.elbow_curve (#182) * range_n_clusters added to elbow_curve signature * reversed auto lint changes * deprecation warning added to docs * deprecation note fixed Co-authored-by: yafim <[email protected]> Updating ROC constructor, removed y_test, y_true args (#135) * y_test, y_true args removed from roc constructor * AbstractPlot added to ROC * roc_rates_n_classes removed * tests added, code cleaned * examples added, relative import fixed, changelog updated Co-authored-by: yafim <[email protected]> Co-authored-by: Ido M <[email protected]> baseline image updated changelog updated Co-authored-by: yafim <[email protected]>
Describe your changes
y_test
,y_true
args removed from roc constructorfpr
andtpr
valuesAbstractPlot
andAbstractComposedPlot
roc.from_raw_data(y_true, y_score)
roc.from_raw_data(y_true, y_score, ax=ax)
Issue ticket number and link
Closes #121
Checklist before requesting a review