Skip to content

Commit 17ab23c

Browse files
committed
bug fixing
1 parent fb1ff40 commit 17ab23c

2 files changed

Lines changed: 2 additions & 191 deletions

File tree

openml/_api/resources/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def _get_estimation_procedure_list(self) -> list[dict[str, Any]]:
425425
name, type, repeats, folds, stratified.
426426
"""
427427
url_suffix = "estimationprocedure/list"
428-
xml_string = self._http.get(url_suffix)
428+
xml_string = self._http.get(url_suffix).text
429429

430430
procs_dict = xmltodict.parse(xml_string)
431431
# Minimalistic check if the XML is useful
@@ -675,7 +675,7 @@ def _create_task_from_json(self, task_json: dict) -> OpenMLTask:
675675
return cls(**common_kwargs)
676676

677677
def list_task_types(self) -> list[dict[str, str | int | None]]:
678-
response = self._http.get("tasktype")
678+
response = self._http.get("tasktype/list")
679679
payload = response.json()
680680

681681
return [

x.py

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)