Dataset Versions
A dataset can have multiple versions.
Get all dataset versions
dataset_versions = client.get_dataset_versions(my_dataset.id)
Parameter | Type | Description |
---|
dataset_id | str | The dataset id |
Create dataset version
new_dataset_version = DatasetVersion(
name= "v2",
description= "Even more images of dogs and cats"
)
new_dataset_version = client.create_dataset_version(my_dataset.id, new_dataset_version)
Parameter | Type | Description |
---|
dataset_id | str | The dataset id |
dataset_version | DatasetVersion | The dataset version object |
Datast properties in detail:
Property | Type | Description |
---|
id | str | Unique id for the dataset |
created_at | str | The creation date |
updated_at | str | Last updated date |
name | str | The dataset version name |
description | str | The dataset version description |
user_id | str | The unique id of the dataset creator |
labels | List[Label] | A list of the labels in this version |
dataset_id | str | The id of the dataset this version belongs to |
splits | List[DatasetSplit] | A list of splits in this dataset version |
default_split | str | The id of split that will be displayed by default |
config | str | Version specific configuration |
Get a dataset version
dataset_version = client.get_dataset_version(new_dataset_version.dataset_id, new_dataset_version.id)
Parameter | Type | Description |
---|
dataset_id | str | The dataset id |
Update a dataset version
new_dataset_version.description = "Even more image of cats and dogs."
client.update_dataset_version(my_dataset.id, new_dataset_version)
Parameter | Type | Description |
---|
dataset_id | str | The dataset id |
dataset_version | DatasetVersion | The dataset version object |
Delete a dataset version
client.delete_dataset_version(my_dataset.id, new_dataset_version)
Parameter | Type | Description |
---|
dataset_id | str | The dataset id |
dataset_version | DatasetVersion | The dataset version object |