-
Notifications
You must be signed in to change notification settings - Fork 383
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
Raise value error for min max computation of feature range #2072
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2072 +/- ##
=======================================
Coverage 92.42% 92.43%
=======================================
Files 101 101
Lines 5017 5022 +5
=======================================
+ Hits 4637 4642 +5
Misses 380 380
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Could you please add a unit test for this change?
1 similar comment
Hi, In the process of trying to troubleshoot we find missing exception information about the failure, this is exception handling (logging) for a case with unknown trigger condition. Could you suggest a suitable unit test for this as it's not clear what a dataset needs to look like in the first place to trigger a ValueError in this part. |
Raising value error for exception in converting min / max of a feature column to float, and printing the type of the argument.
Description
Observed value error:
<class 'ValueError'>
File "/mnt/azureml/cr/j/[guid]/exe/wd/_telemetry/_loggerfactory.py", line 143 in wrapper
return func(*args, **kwargs)
File "create_rai_insights.py", line 184 in main
_ = RAIInsights(
File "/azureml-envs/responsibleai/lib/python3.8/site-packages/responsibleai/rai_insights/rai_insights.py", line 236 in init
self._feature_ranges = RAIInsights._get_feature_ranges(
File "/azureml-envs/responsibleai/lib/python3.8/site-packages/responsibleai/rai_insights/rai_insights.py", line 1263 in _get_feature_ranges
max_value = float(test[col].max())
Checklist