Help Center/ ModelArts/ SDK Reference/ Data Management/ Managing Samples/ Querying Details About a Sample
Updated on 2025-08-20 GMT+08:00
Querying Details About a Sample
Obtain details about a specified sample in a dataset based on the sample ID.
dataset.get_sample_info(sample_id)
Sample Code
Obtain details about a specified sample in a dataset based on the sample ID.
from modelarts.session import Session from modelarts.dataset import Dataset session = Session() dataset = Dataset(session, dataset_id) sample_info = dataset.get_sample_info(sample_id="2551e78974aed9b60156d8376232f6bd") print(sample_info) # Print the detailed information about the sample.
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| sample_id | Yes | String | Sample ID |
Parent topic: Managing Samples
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.