Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Fixes random seeding#5

Open
jarnoux wants to merge 1 commit into
google:masterfrom
jarnoux:patch-1
Open

Fixes random seeding#5
jarnoux wants to merge 1 commit into
google:masterfrom
jarnoux:patch-1

Conversation

@jarnoux
Copy link
Copy Markdown

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant