Querying the List of Training Job Versions
Sample Code
In ModelArts notebook, 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 6 |
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() print(job_version_instance_list) |
Parameters
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 Querying the List of 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. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot