-
Notifications
You must be signed in to change notification settings - Fork 39
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
ohem_ratio #15
Comments
I had the same question. I am looking at the provided example where ohem=0.1. I think if the intention were for ohem to be negative/positive then the example should probably use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the code comment,
ohem_ratio
refers to themax ratio of positive/negative, defautls to 0.0, which means no ohem.
But later in the code, it is computing
keep_num
with a formulakeep_num = min(int(pos_num * self.ohem_ratio / logits_size), neg_num)
.Should the comment be changed to
negative/positive
?The text was updated successfully, but these errors were encountered: