-
-
Notifications
You must be signed in to change notification settings - Fork 211
[ENH] improved simple assertion error message in evalutation/functions.py
#1600
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1600 +/- ##
==========================================
- Coverage 53.02% 51.96% -1.07%
==========================================
Files 36 36
Lines 4326 4326
==========================================
- Hits 2294 2248 -46
- Misses 2032 2078 +46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
evalutation/functions.py
geetu040
left a comment
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.
How is this PR related to #1574?
| assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type( | ||
| evals_dict["oml:evaluations"], | ||
| evals_dict["oml:evaluations"]["oml:evaluation"], | ||
| ) |
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.
This can be descriptive.
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.
Not sure I got what you mean, should I change something or not?
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.
assertion message can be improved like this:
"Expected 'oml:evaluations.oml:evaluation' to be a list, but got ..."
It's not. It's a slight mistake I found while reading the code for evaluation functions |
Details
fixed a simple assertion error message in `evalutation/functions.py'