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 in test.py #6

Open
PuNeal opened this issue Sep 10, 2019 · 0 comments
Open

Bug in test.py #6

PuNeal opened this issue Sep 10, 2019 · 0 comments

Comments

@PuNeal
Copy link

PuNeal commented Sep 10, 2019

I found a bug when I tested a trained model. Concretely, this bug exists in function "eval_example". Due to the value of ground truth may be -1, 'yi' may be less than zero in some cases so that 'rec' will be negative. Then I added this code in the function: y_true[y_true == -1.] = 0 and the result was correct.

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