Repository navigation
Add centroid as alias to barycenter - #8622
Conversation
|
The function 'centroid' already appears in 'trees/distance_measures.py'. Does anyone have any solutions of how to solve it? |
|
I've used the "name" attribute to differentiate the functions. Let me know if anyone has better suggestions. |
|
Is it possible to get another opinion on these changes please? I would like to know if they are sufficient in solving the issue |
dschult
left a comment
There was a problem hiding this comment.
This looks pretty good to me.
I think the docs also need to be changed.
doc/reference/algorithms/distance_measures.rst should have centroid listed.
|
The docs for So I think we do actually need to use it for the tree.centroid version. Please leave the There also appear to be two "style" issues. An extra space at the end of one line. And the one-line comment for |
|
@dschult thanks for the help. I have added the name keyword argument for just tree.centroid and fixed the style issues. |
Co-authored-by: Dan Schult <[email protected]>
rossbar
left a comment
There was a problem hiding this comment.
LGTM to me too, thanks @OliCheesman and @dschult !
Solves #8491