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

random selection in multi-dataset #24

Open
rjkoch opened this issue Aug 10, 2024 · 1 comment
Open

random selection in multi-dataset #24

rjkoch opened this issue Aug 10, 2024 · 1 comment

Comments

@rjkoch
Copy link

rjkoch commented Aug 10, 2024

dataset_path = self.dataset_pathes[random_int]

I think this should be
dataset_path = self.dataset_pathes[potential_dataset_pathes[random_int]]

the previous line
random_int = np.random.randint(potential_dataset_pathes.size)

is selecting a random integer within the domain of the length of the array. We need to reference that to pick the right entry of our potential_dataset_pathes

@rjkoch
Copy link
Author

rjkoch commented Aug 10, 2024

after implementing this and realizing another issue, I think it's better to do this:
random_int = potential_dataset_pathes[np.random.randint(potential_dataset_pathes.size)]

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

1 participant