evaluations
openml.evaluations
#
OpenMLEvaluation
dataclass
#
OpenMLEvaluation(run_id: int, task_id: int, setup_id: int, flow_id: int, flow_name: str, data_id: int, data_name: str, function: str, upload_time: str, uploader: int, uploader_name: str, value: float | None, values: list[float] | None, array_data: str | None = None)
Contains all meta-information about a run / evaluation combination, according to the evaluation/list function
| PARAMETER | DESCRIPTION |
|---|---|
run_id
|
Refers to the run.
TYPE:
|
task_id
|
Refers to the task.
TYPE:
|
setup_id
|
Refers to the setup.
TYPE:
|
flow_id
|
Refers to the flow.
TYPE:
|
flow_name
|
Name of the referred flow.
TYPE:
|
data_id
|
Refers to the dataset.
TYPE:
|
data_name
|
The name of the dataset.
TYPE:
|
function
|
The evaluation metric of this item (e.g., accuracy).
TYPE:
|
upload_time
|
The time of evaluation.
TYPE:
|
uploader
|
Uploader ID (user ID)
TYPE:
|
upload_name
|
Name of the uploader of this evaluation
TYPE:
|
value
|
The value (score) of this evaluation.
TYPE:
|
values
|
The values (scores) per repeat and fold (if requested)
TYPE:
|
array_data
|
list of information per class. (e.g., in case of precision, auroc, recall)
TYPE:
|
list_evaluation_measures
#
Return list of evaluation measures available.
The function performs an API call to retrieve the entire list of evaluation measures that are available.
| RETURNS | DESCRIPTION |
|---|---|
list
|
|
Source code in openml/evaluations/functions.py
list_evaluations
#
list_evaluations(function: str, offset: int | None = None, size: int | None = None, tasks: list[str | int] | None = None, setups: list[str | int] | None = None, flows: list[str | int] | None = None, runs: list[str | int] | None = None, uploaders: list[str | int] | None = None, tag: str | None = None, study: int | None = None, per_fold: bool | None = None, sort_order: str | None = None, output_format: Literal['dataframe'] = ...) -> DataFrame
list_evaluations(function: str, offset: int | None = None, size: int | None = None, tasks: list[str | int] | None = None, setups: list[str | int] | None = None, flows: list[str | int] | None = None, runs: list[str | int] | None = None, uploaders: list[str | int] | None = None, tag: str | None = None, study: int | None = None, per_fold: bool | None = None, sort_order: str | None = None, output_format: Literal['object'] = 'object') -> dict[int, OpenMLEvaluation]
list_evaluations(function: str, offset: int | None = None, size: int | None = None, tasks: list[str | int] | None = None, setups: list[str | int] | None = None, flows: list[str | int] | None = None, runs: list[str | int] | None = None, uploaders: list[str | int] | None = None, tag: str | None = None, study: int | None = None, per_fold: bool | None = None, sort_order: str | None = None, output_format: Literal['object', 'dataframe'] = 'object') -> dict[int, OpenMLEvaluation] | DataFrame
List all run-evaluation pairs matching all of the given filters.
(Supports large amount of results)
| PARAMETER | DESCRIPTION |
|---|---|
function
|
the evaluation function. e.g., predictive_accuracy
TYPE:
|
offset
|
the number of runs to skip, starting from the first
TYPE:
|
size
|
The maximum number of runs to show.
If set to
TYPE:
|
tasks
|
the list of task IDs
TYPE:
|
setups
|
the list of setup IDs
TYPE:
|
flows
|
the list of flow IDs
TYPE:
|
runs
|
the list of run IDs
TYPE:
|
uploaders
|
the list of uploader IDs
TYPE:
|
tag
|
filter evaluation based on given tag
TYPE:
|
study
|
TYPE:
|
per_fold
|
TYPE:
|
sort_order
|
order of sorting evaluations, ascending ("asc") or descending ("desc")
TYPE:
|
output_format
|
The parameter decides the format of the output. - If 'object' the output is a dict of OpenMLEvaluation objects - If 'dataframe' the output is a pandas DataFrame
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict or dataframe
|
|
Source code in openml/evaluations/functions.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
list_evaluations_setups
#
list_evaluations_setups(function: str, offset: int | None = None, size: int | None = None, tasks: list | None = None, setups: list | None = None, flows: list | None = None, runs: list | None = None, uploaders: list | None = None, tag: str | None = None, per_fold: bool | None = None, sort_order: str | None = None, parameters_in_separate_columns: bool = False) -> DataFrame
List all run-evaluation pairs matching all of the given filters and their hyperparameter settings.
| PARAMETER | DESCRIPTION |
|---|---|
function
|
the evaluation function. e.g., predictive_accuracy
TYPE:
|
offset
|
the number of runs to skip, starting from the first
TYPE:
|
size
|
the maximum number of runs to show
TYPE:
|
tasks
|
the list of task IDs
TYPE:
|
setups
|
the list of setup IDs
TYPE:
|
flows
|
the list of flow IDs
TYPE:
|
runs
|
the list of run IDs
TYPE:
|
uploaders
|
the list of uploader IDs
TYPE:
|
tag
|
filter evaluation based on given tag
TYPE:
|
per_fold
|
TYPE:
|
sort_order
|
order of sorting evaluations, ascending ("asc") or descending ("desc")
TYPE:
|
parameters_in_separate_columns
|
Returns hyperparameters in separate columns if set to True. Valid only for a single flow
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dataframe with hyperparameter settings as a list of tuples.
|
|
Source code in openml/evaluations/functions.py
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | |