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

Implementation question for the calculation of p_emp #1

Open
AlyssaYoung opened this issue Sep 14, 2023 · 0 comments
Open

Implementation question for the calculation of p_emp #1

AlyssaYoung opened this issue Sep 14, 2023 · 0 comments

Comments

@AlyssaYoung
Copy link

hi~I have a question about the calculation of p_emp. As you mentioned in Appendix B, you use exponential moving average to calculate the p_emp. Why in the calculation of p_batch, you implement it by p_batch = torch.tensor([len(c) / len(train) for c in batch_by_class]) not p_batch = torch.tensor([len(c) / len(X_batch) for c in batch_by_class])?

Moreover, can you further explain the motivation of EMA, i.e. when the exact value of empirical label distribution is not available?

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