In the ModelArts notebook instance, you do not need to enter authentication parameters for session authentication. For details about session authentication of other development environments, see Session Authentication.
1 2 3 4 5 | from modelarts.session import Session from modelarts.estimator import Estimator session = Session() estimator = Estimator(session, job_id="182626") job_version_instance_list = estimator.get_job_version_object_list() |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
modelarts_session |
Yes |
Object |
Session object. For details about the initialization method, see Session Authentication. |
job_id |
Yes |
String |
ID of a training job. You can query job_id using the training job object generated in Creating a Training Job, for example, job_instance.job_id, or from the response obtained in Obtaining Training Jobs. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
is_show |
No |
Boolean |
Whether to print the training job version details. Default value: True |
A training object list is returned in the successful response to get_job_version_object_list. For details, see Table 3.
Parameter |
Type |
Description |
---|---|---|
TrainingJob |
Object |
Training object. This object contains attributes such as job_id and version_id, and operations on a training job, such as querying, modifying, or deleting the training job. For example, you can use job_version_instance.job_id to obtain the ID of a training job. |