wutong16/DistributionBalancedLoss

About Class aware sampler

zhandand opened this issue · 2 comments

# 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!

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

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