Skip to content

Commit 9787d3c

Browse files
authored
Merge pull request #359 from amueller/add_evaluations_to_apidoc
Update api docs, list evaluations
2 parents 4152dfc + 7ac4f0a commit 9787d3c

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

doc/api.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Top-level Classes
1818
OpenMLTask
1919
OpenMLSplit
2020
OpenMLFlow
21+
OpenMLEvaluation
2122

2223

2324
:mod:`openml.datasets`: Dataset Functions
@@ -43,12 +44,18 @@ Top-level Classes
4344

4445
run_task
4546
get_run
47+
get_runs
4648
list_runs
4749
list_runs_by_flow
4850
list_runs_by_tag
4951
list_runs_by_task
5052
list_runs_by_uploader
5153
list_runs_by_filters
54+
run_model_on_task
55+
run_flow_on_task
56+
get_run_trace
57+
initialize_model_from_run
58+
initialize_model_from_trace
5259

5360
:mod:`openml.tasks`: Task Functions
5461
-----------------------------------
@@ -59,6 +66,7 @@ Top-level Classes
5966
:template: function.rst
6067

6168
get_task
69+
get_tasks
6270
list_tasks
6371

6472
:mod:`openml.flows`: Flow Functions
@@ -68,4 +76,18 @@ Top-level Classes
6876
.. autosummary::
6977
:toctree: generated/
7078
:template: function.rst
79+
80+
get_flow
81+
list_flows
82+
flow_exists
83+
84+
:mod:`openml.flows`: Evaluation Functions
85+
-----------------------------------------
86+
.. currentmodule:: openml.evaluation
87+
88+
.. autosummary::
89+
:toctree: generated/
90+
:template: function.rst
91+
92+
list_evaluations
7193

openml/evaluations/evaluation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class OpenMLEvaluation(object):
2121
value : float
2222
the value of this evaluation
2323
array_data : str
24-
list of information per class (e.g., in case of precision, auroc, recall)
24+
list of information per class (e.g., in case of precision, auroc,
25+
recall)
2526
'''
2627
def __init__(self, run_id, task_id, setup_id, flow_id, flow_name,
2728
data_id, data_name, function, upload_time, value,
@@ -37,4 +38,3 @@ def __init__(self, run_id, task_id, setup_id, flow_id, flow_name,
3738
self.upload_time = upload_time
3839
self.value = value
3940
self.array_data = array_data
40-

openml/evaluations/functions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
from .._api_calls import _perform_api_call
44
from ..evaluations import OpenMLEvaluation
55

6-
def list_evaluations(function, offset=None, size=None, id=None, task=None, setup=None,
7-
flow=None, uploader=None, tag=None):
6+
7+
def list_evaluations(function, offset=None, size=None, id=None, task=None,
8+
setup=None, flow=None, uploader=None, tag=None):
89
"""List all run-evaluation pairs matching all of the given filters.
910
1011
Perform API call `/evaluation/function{function}/{filters}

0 commit comments

Comments
 (0)