You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError raised by trying to get the __repr__ of a locally created task #1100
When creating a task locally the __repr__ function raises a TypeError due to the class_labels attribute being None. This persists even after publishing it, which makes exposure of this bug more prevalent (because the task.publish() returns itself which invokes __repr__ if ran in an interactive shell without assigning the result to a variable):
Suggested expected behavior: leave it out of the __repr__ if class_labels is None, i.e. extend the check of task#100 to skip assignment if class_labels is None. I don't think it's worth the added complexity to support an accurate class_labels in this niche scenario.
Activity
fix openml#1100/openml#1058 nonetype error
fix nonetype error during print for tasks without class labels (#1148)
fix nonetype error during print for tasks without class labels (openm…