Updated on 2024-06-12 GMT+08:00

Modifying a Dataset

Change the name or modify the description of a dataset.

dataset.update_dataset(dataset_name=None, description=None)

Sample Code

Change a dataset name.
from modelarts.session import Session
from modelarts.dataset import Dataset
session = Session()

dataset = Dataset(session, dataset_id)
dataset.update_dataset(dataset_name = "new-dataset-name")

Parameters

Table 1 Request parameters

Parameter

Mandatory

Type

Description

dataset_name

No

String

Dataset name

description

No

String

Dataset description