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

Error in expected_error.py #45

Closed
panushri25 opened this issue Jun 7, 2019 · 4 comments
Closed

Error in expected_error.py #45

panushri25 opened this issue Jun 7, 2019 · 4 comments

Comments

@panushri25
Copy link

Hello,

I noticed a bug in your expected_error.py. In line 70, the loss variable which is supposed to be log/binary is being replaced with a local variable. As a result after the first iteration the if statement does not execute and the loss remains constant. Just change the variable to nloss or something else and it should work.

Thank you,

@panushri25
Copy link
Author

Also i think you need to take a argmin instead of argmax. And when evaluating loss using refitted_proba, you should exclude the point already being queried to calculate the future loss.

@cosmic-cortex
Copy link
Member

Thanks! These were indeed wrong, I have fixed them. The changes were merged to the master branch!

@panushri25
Copy link
Author

your refitted_proba should not include x_idx for future loss right ? otherwise your training point is in test too.

@cosmic-cortex
Copy link
Member

Sorry, I have also fixed that but forgot to push the commit :) Now it is pushed and merged to the main branch.

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

2 participants