Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b4a5576
added additional task agnostic local result to print of run
LennartPurucker Feb 22, 2023
ece79f0
add PR to progress.rst
LennartPurucker Feb 22, 2023
a09c850
fix comment typo
LennartPurucker Feb 22, 2023
c8724b6
Update openml/runs/run.py
LennartPurucker Feb 22, 2023
b6af420
add a function to list available estimation procedures
LennartPurucker Feb 23, 2023
5258ded
refactor print to only work for supported task types and local measures
LennartPurucker Feb 23, 2023
f15a1d8
add test for pint out and update progress
LennartPurucker Feb 23, 2023
167dfd2
Merge branch 'develop' into run_print
LennartPurucker Feb 23, 2023
ca1c5a8
added additional task agnostic local result to print of run
LennartPurucker Feb 22, 2023
8a572fe
add PR to progress.rst
LennartPurucker Feb 22, 2023
27c2c15
fix comment typo
LennartPurucker Feb 22, 2023
454364e
Update openml/runs/run.py
LennartPurucker Feb 22, 2023
bbb849d
add a function to list available estimation procedures
LennartPurucker Feb 23, 2023
47f4346
refactor print to only work for supported task types and local measures
LennartPurucker Feb 23, 2023
992dc52
add test for pint out and update progress
LennartPurucker Feb 23, 2023
2785ad8
Merge branch 'run_print' of https://github.com/LennartPurucker/openml…
LennartPurucker Feb 24, 2023
a20536a
Merge branch 'develop' of https://github.com/openml/openml-python int…
LennartPurucker Feb 24, 2023
5730669
Fix CI Python 3.6 (#1218)
mfeurer Feb 24, 2023
5b2ac46
Bump docker/setup-buildx-action from 1 to 2 (#1221)
dependabot[bot] Feb 24, 2023
5dcb7a3
Update run.py (#1194)
v-parmar Feb 24, 2023
fb58411
add type hint for new function
LennartPurucker Feb 24, 2023
6dbb498
update add description
LennartPurucker Feb 24, 2023
687a0f1
Refactor if-statements (#1219)
PGijsbers Mar 1, 2023
c0a75bd
Ci python 38 (#1220)
mfeurer Mar 1, 2023
502988b
added additional task agnostic local result to print of run
LennartPurucker Feb 22, 2023
1bb2b1f
add PR to progress.rst
LennartPurucker Feb 22, 2023
741f766
fix comment typo
LennartPurucker Feb 22, 2023
c5b0789
Update openml/runs/run.py
LennartPurucker Feb 22, 2023
9706132
add a function to list available estimation procedures
LennartPurucker Feb 23, 2023
4493b12
refactor print to only work for supported task types and local measures
LennartPurucker Feb 23, 2023
f3d5753
add test for pint out and update progress
LennartPurucker Feb 23, 2023
cd91ba0
added additional task agnostic local result to print of run
LennartPurucker Feb 22, 2023
dea48f4
add PR to progress.rst
LennartPurucker Feb 22, 2023
8b86816
add type hint for new function
LennartPurucker Feb 24, 2023
b3b4447
update add description
LennartPurucker Feb 24, 2023
4ba2dc0
fix run doc string
LennartPurucker Mar 1, 2023
4907755
Merge remote-tracking branch 'origin/run_print' into run_print
LennartPurucker Mar 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a function to list available estimation procedures
  • Loading branch information
LennartPurucker committed Feb 23, 2023
commit b6af420f27933746d331afdf99f8666c4a664cd7
33 changes: 33 additions & 0 deletions openml/evaluations/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,39 @@ def list_evaluation_measures() -> List[str]:
return qualities


def list_estimation_procedures():
Comment thread
LennartPurucker marked this conversation as resolved.
Outdated
"""Return list of evaluation procedures available.

The function performs an API call to retrieve the entire list of
evaluation procedures' names that are available.

Returns
-------
list
"""

api_call = "estimationprocedure/list"
xml_string = openml._api_calls._perform_api_call(api_call, "get")
api_results = xmltodict.parse(xml_string)

# Minimalistic check if the XML is useful
if "oml:estimationprocedures" not in api_results:
raise ValueError("Error in return XML, does not contain " '"oml:estimationprocedures"')
if "oml:estimationprocedure" not in api_results["oml:estimationprocedures"]:
raise ValueError("Error in return XML, does not contain " '"oml:estimationprocedure"')

if not isinstance(api_results["oml:estimationprocedures"]["oml:estimationprocedure"], list):
raise TypeError(
"Error in return XML, does not contain " '"oml:estimationprocedure" as a list'
)

prods = [
prod["oml:name"]
for prod in api_results["oml:estimationprocedures"]["oml:estimationprocedure"]
]
return prods


def list_evaluations_setups(
function: str,
offset: Optional[int] = None,
Expand Down