Skip to content
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

About get_random_items method in Visualizer #1524

Open
irmo322 opened this issue Jun 7, 2024 · 3 comments
Open

About get_random_items method in Visualizer #1524

irmo322 opened this issue Jun 7, 2024 · 3 comments
Assignees

Comments

@irmo322
Copy link

irmo322 commented Jun 7, 2024

Hi,

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.

@vinnamkim
Copy link
Contributor

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.

@ChaitanyaYeole02
Copy link

Hey @vinnamkim, I am interested to work on this issue. Can you please assign it to me?

@vinnamkim
Copy link
Contributor

Hey @vinnamkim, I am interested to work on this issue. Can you please assign it to me?

Sure, it's always welcome.

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

No branches or pull requests

3 participants