Skip to content

Conversation

@PGijsbers
Copy link
Collaborator

Updates create_study (fixes #1110):

  • alias parameter is now optional
  • run_ids is allowed to be an empty list or None (it is possible to create an empty study and upload runs to attach to it later). Internally [] will be converted to None, otherwise the server gets upset (see Make optional arguments to create_study actually optional #1110 for more info).

Note that previously empty studies were not allowed in openml-python, but they now are. Previously empty studies were only allowed if they were created before 2019-01-01, and they were expected to have their runs set to None so I reintroduced this convention for new studies without runs (though I think perhaps an empty list might be better).

Publish explicitly empty suites and downloading any empty suites not
currently supported.
@PGijsbers
Copy link
Collaborator Author

I ran unit tests locally, and the study ones worked fine (except test_study_list which explicitly says failure can be caused by server state). The general suite seemed to have issues which as far as I can tell are due to the test server state?

@PGijsbers PGijsbers requested a review from mfeurer October 13, 2021 15:27
PGijsbers and others added 2 commits October 27, 2021 14:55
Co-authored-by: Matthias Feurer <[email protected]>
Since unit test cleanup mechanism should take care of that.
@PGijsbers PGijsbers merged commit b4c868a into develop Oct 28, 2021
@PGijsbers PGijsbers deleted the fix/1110 branch October 28, 2021 07:49
github-actions bot pushed a commit that referenced this pull request Oct 28, 2021
PGijsbers added a commit to Mirkazemi/openml-python that referenced this pull request Feb 23, 2023
Update function signatures for create_study|suite and allow for empty studies (i.e. with no runs).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make optional arguments to create_study actually optional

3 participants