-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 error if ClassLabel names is not python list #5359
Raise error if ClassLabel names is not python list #5359
Conversation
The documentation is not available anymore as the PR was closed or merged. |
Thanks for your proposed fix, @freddyheppell. Currently the CI fails because in a test we pass a What about checking for |
Fixed that @albertvillanova, can you approve CI again please? Had some issues related to Pytorch .so files when running tests on my M1 mac, so wasn't able to test locally first. Have got them working on my desktop now though. |
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.
CI is green. Thanks for the fix and the test!!
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.
Replaced ValueError
with TypeError
. Looks good now, thanks!
Checks type of names provided to ClassLabel to avoid easy and hard to debug errors (closes #5332 - see for discussion)