Skip to content

Moretasks - #544

Merged
mfeurer merged 16 commits into
developfrom
moretasks
Sep 21, 2018
Merged

mfeurer merged 16 commits into
developfrom
moretasks

Conversation

@joaquinvanschoren

Copy link
Copy Markdown
Contributor

What does this PR implement/fix? Explain your changes.

It generalizes tasks so that you can handle different tasks differently.
Right now every task was assumed to be a classification task

How should this PR be tested?

Standard unit test

Comment thread openml/tasks/task.py
self.task_id = int(task_id)
self.task_type_id = int(task_type_id)
self.task_type = task_type
self.dataset_id = int(data_set_id)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we call this "source_data", in co-ordinance with the task descriptions (hidden in the XML)

Comment thread openml/tasks/task.py
self.estimation_procedure["data_splits_url"] = data_splits_url
self.estimation_procedure["parameters"] = estimation_parameters
#
self.estimation_parameters = estimation_parameters

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather store the estimation procedure id (not available in api right now, let's add it)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janvanrijn I'm afraid that won't be backwards compatible... But we can probably transit at some point to store something different in the cache. Do you want to open a new issue on the OpenML issue tracker?

Comment thread openml/tasks/task.py
"""Download dataset associated with task"""
return datasets.get_dataset(self.dataset_id)

def push_tag(self, tag):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't we have general tag functions?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise we should create them. (and not duplicate tag functions code for each entity)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great remark. I think we should do this in a new PR, though, as it is not directly related to this PR. I opened issue #549 for this.

@codecov-io

codecov-io commented Sep 21, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #544 into develop will decrease coverage by 0.02%.
The diff coverage is 90.74%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #544      +/-   ##
===========================================
- Coverage    90.07%   90.04%   -0.03%     
===========================================
  Files           32       32              
  Lines         2811     2844      +33     
===========================================
+ Hits          2532     2561      +29     
- Misses         279      283       +4
Impacted Files Coverage Δ
openml/tasks/__init__.py 100% <100%> (ø) ⬆️
openml/tasks/task.py 93.4% <90%> (-2.05%) ⬇️
openml/tasks/functions.py 88.02% <91.66%> (-0.04%) ⬇️
openml/flows/functions.py 94.18% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8786457...62818c8. Read the comment docs.

@mfeurer
mfeurer merged commit a01949d into develop Sep 21, 2018
@mfeurer
mfeurer deleted the moretasks branch September 21, 2018 18:15
@ArlindKadra ArlindKadra mentioned this pull request Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants