AI开发平台MODELARTS-创建可视化作业:示例代码

时间:2024-07-17 15:29:05

示例代码

在ModelArts notebook平台,Session鉴权无需输入鉴权参数。其它平台的Session鉴权请参见Session鉴权

1
2
3
4
5
from modelarts.session import Session
from modelarts.estimator import VisualizationJob
session = Session()
job = VisualizationJob(modelarts_session=session) 
job_visualization_instance = job.create_visualization_job(train_url='/bucket/train/', job_name='visualization_job', job_desc='my visualization job')
support.huaweicloud.com/sdkreference-modelarts/modelarts_04_0181.html