-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
np.where sustituted by np.asarray in _affinity_propagation.py #30520
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
Conversation
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.
Linting is failing due to this line. Let's simply remove it.
Nevertheless, I think the issue #30400 was more about changes in documentation, not sure if we should adopt it in the code itself. Pinging @lorentzenchr for his opinion.
@@ -148,7 +148,8 @@ def _affinity_propagation( | |||
c[I] = np.arange(K) # Identify clusters | |||
# Refine the final set of exemplars and clusters and return results | |||
for k in range(K): | |||
ii = np.where(c == k)[0] | |||
#ii = np.where(c == k)[0] |
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.
#ii = np.where(c == k)[0] |
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.
Thanks @emelia-hdz
Reference Issues/PRs
Related to #30400
What does this implement/fix? Explain your changes.
Any other comments?