Skip to content

Conversation

@jarnoux
Copy link

@jarnoux jarnoux commented Dec 5, 2022

self.already_selected is initialized to [] in the constructor but is never assigned None so that will always be false.

If already_selected is empty, ind will be initialized to np.argmax(self.min_distances), which was initialized to None and never reassigned so the first selected datapoint will always be np.argmax(None) = 0

`self.already_selected` is initialized to `[]` in the constructor but is never assigned `None` so that will always be false.

If `already_selected` is empty, `ind` will be initialized to `np.argmax(self.min_distances)`, which was initialized to `None` and never reassigned so the first selected datapoint will always be `np.argmax(None) = 0`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant