-
-
Notifications
You must be signed in to change notification settings - Fork 211
[WIP] Task upload #607
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
[WIP] Task upload #607
Conversation
a5a9962 to
649d26b
Compare
Codecov Report
@@ Coverage Diff @@
## develop #607 +/- ##
===========================================
- Coverage 90.67% 90.54% -0.14%
===========================================
Files 36 36
Lines 3690 3743 +53
===========================================
+ Hits 3346 3389 +43
- Misses 344 354 +10
Continue to review full report at Codecov.
|
6d00fb4 to
2cc2f55
Compare
openml/tasks/task.py
Outdated
| task_container = super(OpenMLClusteringTask, self)._to_dict() | ||
| task_dict = task_container['oml:task_inputs'] | ||
|
|
||
| task_dict['oml:input'].append( |
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.
Is the estimation procedure common to all task types? If yes, could you please add it to the parent class?
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.
Nice observation. It also made me realise that the code for some of the tasks can be incomplete since when the class is downloaded from the server it has more information concerning the estimation procedure.
f6f6f7f to
467f977
Compare
mfeurer
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.
Hey, this looks really good! Only a few minor comments. I'll approve once the PEP8 stuff is green.
443a30d to
8bc8297
Compare
24a3793 to
7b0e962
Compare
mfeurer
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.
Awesome, I just have a few minor questions/requests, and then we should be good to go with this!
What does this PR implement/fix? Explain your changes.
Implements task upload.
Adds a function that allows tasks to be created (facilitates task creation for users compared to the task constructor).
Adds type annotations for the task object.
How should this PR be tested?
New unit tests for different kinds of tasks.
Addresses #657, #656