resources
openml._api.resources.base.resources
#
DatasetAPI
#
DatasetAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for dataset resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
EstimationProcedureAPI
#
EstimationProcedureAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for estimation procedure resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
EvaluationAPI
#
EvaluationAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for evaluation resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
EvaluationMeasureAPI
#
EvaluationMeasureAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for evaluation measure resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
FlowAPI
#
FlowAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for flow resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
RunAPI
#
RunAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for run resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
SetupAPI
#
SetupAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for setup resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
StudyAPI
#
StudyAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for study resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
TaskAPI
#
TaskAPI(http: HTTPClient, minio: MinIOClient)
Bases: ResourceAPI
Abstract API interface for task resources.
Source code in openml/_api/resources/base/base.py
delete
abstractmethod
#
Delete a resource by its identifier.
| PARAMETER | DESCRIPTION |
|---|---|
resource_id
|
Unique identifier of the resource to delete.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
publish
abstractmethod
#
Publish a new resource to the OpenML server.
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path used for publishing the resource.
TYPE:
|
files
|
Files or payload data required for publishing. The structure depends on the resource type.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
Identifier of the newly created resource. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
tag
abstractmethod
#
Add a tag to a resource.
| 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. |
Notes
Concrete subclasses must implement this method.
Source code in openml/_api/resources/base/base.py
untag
abstractmethod
#
Remove a tag from a resource.
| 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. |
Notes
Concrete subclasses must implement this method.