study
openml._api.resources.study
#
StudyV1API
#
StudyV1API(http: HTTPClient, minio: MinIOClient)
Bases: ResourceV1API, StudyAPI
Source code in openml/_api/resources/base/base.py
delete
#
Delete a resource using the V1 API.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
If the resource type is not supported for deletion. |
OpenMLNotAuthorizedError
|
If the user is not permitted to delete the resource. |
OpenMLServerError
|
If deletion fails for an unknown reason. |
OpenMLServerException
|
For other server-side errors. |
Source code in openml/_api/resources/base/versions.py
list
#
list(limit: int | None = None, offset: int | None = None, status: str | None = None, main_entity_type: str | None = None, uploader: list[int] | None = None, benchmark_suite: int | None = None) -> DataFrame
List studies using V1 API.
| PARAMETER | DESCRIPTION |
|---|---|
limit
|
Maximum number of studies to return.
TYPE:
|
offset
|
Number of studies to skip.
TYPE:
|
status
|
Filter by status (active, in_preparation, deactivated, all).
TYPE:
|
main_entity_type
|
Filter by main entity type (run, task).
TYPE:
|
uploader
|
Filter by uploader IDs.
TYPE:
|
benchmark_suite
|
Filter by benchmark suite ID.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
DataFrame
|
DataFrame containing study information. |
Source code in openml/_api/resources/study.py
publish
#
Publish a new resource using the V1 API.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path for the upload.
TYPE:
|
files
|
Files to upload as part of the request payload.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
If the server response does not contain a valid resource ID. |
OpenMLServerException
|
If the server returns an error during upload. |
Source code in openml/_api/resources/base/versions.py
tag
#
Add a tag to a resource using the V1 API.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Identifier of the resource to tag.
TYPE:
|
tag
|
Tag to associate with the resource.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list of str
|
Updated list of tags assigned to the resource. |
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
If the resource type does not support tagging. |
OpenMLServerException
|
If the server returns an error. |
Source code in openml/_api/resources/base/versions.py
untag
#
Remove a tag from a resource using the V1 API.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Identifier of the resource to untag.
TYPE:
|
tag
|
Tag to remove from the resource.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list of str
|
Updated list of tags assigned to the resource. |
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
If the resource type does not support tagging. |
OpenMLServerException
|
If the server returns an error. |
Source code in openml/_api/resources/base/versions.py
StudyV2API
#
StudyV2API(http: HTTPClient, minio: MinIOClient)
Bases: ResourceV2API, StudyAPI
Source code in openml/_api/resources/base/base.py
list
#
list(limit: int | None = None, offset: int | None = None, status: str | None = None, main_entity_type: str | None = None, uploader: list[int] | None = None, benchmark_suite: int | None = None) -> DataFrame
V2 API for listing studies is not yet available.