-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Inconsistence between CalibrationDisplay and over Display #21027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the initial API used "estimator_name", because I thought "name" was too generic. Moving forward, I am okay with using "name". I will be happy to review the PR. |
Basically, it is to use |
Now that we have "from_predictions", there is not always an estimator. So "name" is better now? |
with |
For example, I guess a PR to make |
|
However, scikit-learn/sklearn/calibration.py Lines 1064 to 1065 in 597df0a
I indeed corrected this in the PR. |
Ah yes, in that case |
To be specific, the issue I was thinking about was the user API: display = PrecisionRecallDisplay.from_predictions(..., name="Model one")
# The current way to get the name of the curve
display.estimator_name
# Is this better?
display.name |
While working on #20999, I could notice that
CalibrationDisplay
has aname
parameter while other displays have aestimator_name
parameter. In #20999, I try to create a base class that manages, in the same manner, this parameter and it would be handy to have the same naming.@thomasjpfan @lucyleeow Do you remember if there is a reason for choosing
name
instead ofestimator_name
in this display?@adrinjalali If the change makes sense, I would submit a PR and it would be great to include before the release to avoid a deprecation cycle for this brand new display.
The text was updated successfully, but these errors were encountered: