FIX Update pairwise distance function argument names#26351
FIX Update pairwise distance function argument names#26351jjerphan merged 5 commits intoscikit-learn:mainfrom
Conversation
jjerphan
left a comment
There was a problem hiding this comment.
LGTM.
I am +0 regarding this change, but if we agreed on those names at a point, let us just use them.
| class_membership, | ||
| unique_classes, |
There was a problem hiding this comment.
If I had the chance to rename these, I'll go with:
class_membership->y_labels: Directly connects this parameter withyunique_classes->labels: This is consistent with thelabelskwargs in themetricsmodule
There was a problem hiding this comment.
Great suggestion. I do much prefer those names. @jjerphan I wonder what you think regarding these.
There was a problem hiding this comment.
This indeed looks better (I trust you for coming up with the best, appropriate names).
There was a problem hiding this comment.
Small heads-up, @Micky774. Is there something missing for this PR? :)
Dismissing review due to failure and recent changes
|
@jjerphan @thomasjpfan CI error fixed, new variable names adopted. Pinging for review whenever you have time :) |
thomasjpfan
left a comment
There was a problem hiding this comment.
I'm okay with the new names. LGTM
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Updates arguments to conform to the names originally decided in #24076
Any other comments?
cc: @jjerphan @ogrisel