We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I noticed the the LeastSampledClassSampler was a bit slow, when looking at the code I saw that the sample function has
for class_, indicator in enumerate(self.labels[self.indices[chosen_index]]): if indicator == 1: self.counts[class_] += 1
in it. I suppose it would be faster if this was not a python for loop but the following:
self.counts += (self.labels[self.indices[chosen_index]] == 1).int()
I'm pretty new to github so not sure how I would have turned this into a pullrequest.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I noticed the the LeastSampledClassSampler was a bit slow, when looking at the code I saw that the sample function has
in it. I suppose it would be faster if this was not a python for loop but the following:
I'm pretty new to github so not sure how I would have turned this into a pullrequest.
The text was updated successfully, but these errors were encountered: