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

[🐛Bug] Fix if condition in set_neg_sample_args function #1863

Merged
merged 2 commits into from
Oct 8, 2023

Conversation

ChenglongMa
Copy link
Contributor

In the current version

self.neg_sample_args["distribution"] == "uniform"
or "popularity"

The if condition is still true when distribution is uniform but sample_num is none.

Fix `if` condition in `set_neg_sample_args` function.
In the current version, the `if` condition is still `true` when `distribution` is `uniform` but `sample_num` is `none`.
@Ethan-TZ Ethan-TZ merged commit 00c018e into RUCAIBox:master Oct 8, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants