Skip to content

Add new convenience function get_flow_id - #792

Merged
mfeurer merged 4 commits into
developfrom
get_flow_names
Oct 7, 2019
Merged

mfeurer merged 4 commits into
developfrom
get_flow_names

Conversation

@mfeurer

@mfeurer mfeurer commented Oct 1, 2019

Copy link
Copy Markdown
Collaborator

This adds:

  • function get_flow_id
  • a unit test
  • an example/tutorial showcasing the function's usage

Reason

Replaces:

openml.extensions.get_extension_by_model(clf).model_to_flow(clf).publish().flow_id

by

openml.flows.get_flow_id(model=clf)

and also allows to query for all flows of a given model across all external versions:

openml.flows.get_flow_id(model=clf, exact_version=False)

@codecov-io

codecov-io commented Oct 2, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #792 into develop will decrease coverage by 0.03%.
The diff coverage is 86.36%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #792      +/-   ##
===========================================
- Coverage    87.71%   87.67%   -0.04%     
===========================================
  Files           36       36              
  Lines         4208     4228      +20     
===========================================
+ Hits          3691     3707      +16     
- Misses         517      521       +4
Impacted Files Coverage 螖
openml/flows/__init__.py 100% <100%> (酶) 猬嗭笍
openml/flows/functions.py 87.42% <85.71%> (-0.32%) 猬囷笍
openml/_api_calls.py 83.11% <0%> (-1.3%) 猬囷笍

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 f461732...719c1e6. Read the comment docs.

@ArlindKadra ArlindKadra left a comment

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.

Just a few minor comments, everything looks good :)

Comment thread openml/flows/functions.py Outdated
Comment thread examples/30_extended/flow_id_tutorial.py Outdated
Comment thread examples/30_extended/flow_id_tutorial.py Outdated
Comment thread tests/test_flows/test_flow_functions.py
Comment thread tests/test_flows/test_flow_functions.py
@mfeurer
mfeurer requested a review from ArlindKadra October 7, 2019 13:33
@mfeurer
mfeurer merged commit 382959f into develop Oct 7, 2019
@mfeurer
mfeurer deleted the get_flow_names branch October 7, 2019 18:11
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.

3 participants