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
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 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.