Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
30dd55f
Add deprecation warning for retrieving dict
PGijsbers Jun 15, 2023
b502312
Refactor check_datasets_active to work with dataframe
PGijsbers Jun 15, 2023
357bb7d
Update unit tests to use list_datasets with output_format dataframe
PGijsbers Jun 15, 2023
29bbb57
Move list_datasets test to proper file
PGijsbers Jun 15, 2023
464e5dd
Remove list_datasets test, duplicate in test_datasets_functions
PGijsbers Jun 15, 2023
aaad25f
Update list_flows calls to use output_format='dataframe'
PGijsbers Jun 15, 2023
cf9dd7b
Update list_runs calls to require dataframe output
PGijsbers Jun 15, 2023
13f2fb5
Update list_setup calls for deprecation
PGijsbers Jun 15, 2023
d3342a1
Update list_study calls
PGijsbers Jun 15, 2023
b8a915b
Update list_tasks to specify output_format dataframe
PGijsbers Jun 15, 2023
3361b15
Add `output_format` to `list_datasets` call
PGijsbers Jun 15, 2023
be16355
Add TODO markers for removing `dict` support of `list_*` functions
PGijsbers Jun 15, 2023
5cc1287
Make status check less strict, call list_dataset with output_format
PGijsbers Jun 15, 2023
576e09c
Change index on id to did, since thats the dataset id's column name
PGijsbers Jun 15, 2023
b82febe
Update test to reflect new error message
PGijsbers Jun 15, 2023
cc944b5
Fix bug introduced by refactor
PGijsbers Jun 15, 2023
dca2590
Fix minor oversights of refactoring
PGijsbers Jun 15, 2023
5240504
Merge branch 'develop' into pandas_default
PGijsbers Jun 15, 2023
3cff453
Rename variables to reflect they are no longer lists
PGijsbers Jun 16, 2023
c130c41
Fix unsafe indexing on dataframe and remaining unit tests
PGijsbers Jun 16, 2023
22a6dd3
Perform safer check for integer dtypes
PGijsbers Jun 16, 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
Rename variables to reflect they are no longer lists
  • Loading branch information
PGijsbers committed Jun 16, 2023
commit 3cff4537b834a095ac48975559536df112d16cef
14 changes: 7 additions & 7 deletions tests/test_runs/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ def test_tagging(self):
run_id = runs["run_id"].iloc[0]
run = openml.runs.get_run(run_id)
tag = "testing_tag_{}_{}".format(self.id(), time())
run_list = openml.runs.list_runs(tag=tag, output_format="dataframe")
self.assertEqual(len(run_list), 0)
runs = openml.runs.list_runs(tag=tag, output_format="dataframe")
self.assertEqual(len(runs), 0)
run.push_tag(tag)
run_list = openml.runs.list_runs(tag=tag, output_format="dataframe")
self.assertEqual(len(run_list), 1)
self.assertIn(run_id, run_list["run_id"])
runs = openml.runs.list_runs(tag=tag, output_format="dataframe")
self.assertEqual(len(runs), 1)
self.assertIn(run_id, runs["run_id"])
run.remove_tag(tag)
run_list = openml.runs.list_runs(tag=tag, output_format="dataframe")
self.assertEqual(len(run_list), 0)
runs = openml.runs.list_runs(tag=tag, output_format="dataframe")
self.assertEqual(len(runs), 0)

@staticmethod
def _test_prediction_data_equal(run, run_prime):
Expand Down
14 changes: 7 additions & 7 deletions tests/test_tasks/test_task_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ def tearDown(self):
def test_tagging(self):
task = openml.tasks.get_task(1) # anneal; crossvalidation
tag = "testing_tag_{}_{}".format(self.id(), time())
task_list = openml.tasks.list_tasks(tag=tag, output_format="dataframe")
self.assertEqual(len(task_list), 0)
tasks = openml.tasks.list_tasks(tag=tag, output_format="dataframe")
self.assertEqual(len(tasks), 0)
task.push_tag(tag)
task_list = openml.tasks.list_tasks(tag=tag, output_format="dataframe")
self.assertEqual(len(task_list), 1)
self.assertIn(1, task_list["tid"])
tasks = openml.tasks.list_tasks(tag=tag, output_format="dataframe")
self.assertEqual(len(tasks), 1)
self.assertIn(1, tasks["tid"])
task.remove_tag(tag)
task_list = openml.tasks.list_tasks(tag=tag, output_format="dataframe")
self.assertEqual(len(task_list), 0)
tasks = openml.tasks.list_tasks(tag=tag, output_format="dataframe")
self.assertEqual(len(tasks), 0)

def test_get_train_and_test_split_indices(self):
openml.config.set_root_cache_directory(self.static_cache_dir)
Expand Down