Help Center/ ModelArts/ SDK Reference/ Data Management/ Managing Datasets/ Querying Details About a Dataset
Updated on 2024-06-12 GMT+08:00

Querying Details About a Dataset

Obtain details about a dataset, including the samples and versions of the dataset.

dataset.get_dataset_info()

Sample Code

Obtain details about a dataset.
from modelarts.session import Session
from modelarts.dataset import Dataset
session = Session()

dataset = Dataset(session, dataset_id)
dataset_info = dataset.get_dataset_info()
print(dataset_info) # Output the detailed information about the dataset.

Parameters

None