You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visualizer class has a method named get_random_items(n_samples) in which dataset items are chosen using random.choices.
I expect get_random_items to not choose the same item multiple times, which can occur with random.choices.
Replacing random.choices by random.sample would solved this issue.
Also, I wonder why get_random_items is not in Dataset class in the first place. This functionality is not really related to visualization and is useful is other cases.
Thanks for reading.
The text was updated successfully, but these errors were encountered:
Hi @irmo322, Thanks for your interests on our project. I'll put your suggestion in our backlog. Or, you can open a PR if you want. We greatly appreciate the participation from the open community.
Hi,
Visualizer
class has a method namedget_random_items(n_samples)
in which dataset items are chosen usingrandom.choices
.I expect
get_random_items
to not choose the same item multiple times, which can occur withrandom.choices
.Replacing
random.choices
byrandom.sample
would solved this issue.Also, I wonder why
get_random_items
is not inDataset
class in the first place. This functionality is not really related to visualization and is useful is other cases.Thanks for reading.
The text was updated successfully, but these errors were encountered: