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

Added small tolerance in the R2 test #12

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

mirceast
Copy link
Contributor

@mirceast mirceast commented Jan 28, 2020

With scikit-learn 0.21.2 and numpy 1.16.4 the R2 is slightly different than what's given in RemovingDataSolns.py.

0.019170661803761924 -> value from RemovingDataSolns.py
0.019170661803761813 -> calculated with scikit-learn 0.21.2 and numpy 1.16.4

To accommodate possible future differences as well, I've replaced the absolute equality test with a small tolerance.

@ronny-udacity ronny-udacity added the bug Something isn't working label Mar 4, 2021
@ronny-udacity ronny-udacity merged commit 54e549c into udacity:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants