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 Class aware sampler #17

Closed
zhandand opened this issue Sep 15, 2022 · 2 comments
Closed

About Class aware sampler #17

zhandand opened this issue Sep 15, 2022 · 2 comments

Comments

@zhandand
Copy link

# yield next(data_iter_list[next(cls_iter)])

I wonder why this lined was commented and introduce the variance "num_samples_cls". In my opion, this line can accomplish the same function as the lines below, is that right? Or could you please tell why use variance "num_samples_cls", was that for code efficiency?
Thanks a lot!

@wutong16
Copy link
Owner

Hi! We adopt the implementation of the class-aware sampler by OLTR here.

@zhandand
Copy link
Author

zhandand commented Sep 15, 2022

Thanks for your code link. I have found the meaning of that variance here

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

2 participants