-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fix 'Invalid Value Encountered' error during AutomLSearch #1346
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1346 +/- ##
==========================================
+ Coverage 99.95% 99.95% +0.01%
==========================================
Files 213 213
Lines 13606 13609 +3
==========================================
+ Hits 13599 13602 +3
Misses 7 7
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -37,7 +37,10 @@ def validate(self, pipeline_name, cv_scores): | |||
cv_scores = pd.Series(cv_scores) | |||
|
|||
messages = [] | |||
high_variance_cv = abs(cv_scores.std() / cv_scores.mean()) > self.threshold | |||
if cv_scores.mean() == 0 and cv_scores.std() == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this work if we only check if the mean is equal to 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mm yeah I think so. Since these are scores, if the mean is 0, the std is also 0. Thanks for pointing that out!
Fix #1343
This is a highVarianceDataCheck error, rather than a LightGBM Error
Old docs here and new docs here
Note: The LightGBM warning messages are being addressed in this pr