File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import pandas as pd
99import xmltodict
1010
11+ import openml
1112import openml ._api_calls
1213import openml .config
1314import openml .utils
14- from openml ._api import api_context
1515from openml .study .study import OpenMLBenchmarkSuite , OpenMLStudy
1616
1717if TYPE_CHECKING :
@@ -338,7 +338,7 @@ def delete_study(study_id: int) -> bool:
338338 bool
339339 True iff the deletion was successful. False otherwise
340340 """
341- result : bool = api_context . backend .study .delete (study_id )
341+ result : bool = openml . _backend .study .delete (study_id )
342342 return result
343343
344344
@@ -468,7 +468,7 @@ def list_suites(
468468 - creation_date
469469 """
470470 listing_call = partial (
471- api_context . backend .study .list ,
471+ openml . _backend .study .list ,
472472 main_entity_type = "task" ,
473473 status = status ,
474474 uploader = uploader ,
@@ -519,7 +519,7 @@ def list_studies(
519519 these are also returned.
520520 """
521521 listing_call = partial (
522- api_context . backend .study .list ,
522+ openml . _backend .study .list ,
523523 main_entity_type = "run" ,
524524 status = status ,
525525 uploader = uploader ,
You can’t perform that action at this time.
0 commit comments