AI开发平台MODELARTS-更新训练作业参数:请求示例

时间:2024-09-07 09:09:46

请求示例

如下以更新名为“config”的作业参数为例。
PUT    https://endpoint/v1/{project_id}/training-job-configs/config

{
    "config_desc": "This is config",
    "worker_server_num": 1,
    "app_url": "/usr/app/",
    "boot_file_url": "/usr/app/boot.py",
    "parameter": [
        {
            "label": "learning_rate",
            "value": 0.01
        },
        {
            "label": "batch_size",
            "value": 32
        }
    ],
    "spec_id": 1,
    "dataset_id": "38277e62-9e59-48f4-8d89-c8cf41622c24",
    "dataset_version_id": "2ff0d6ba-c480-45ae-be41-09a8369bfc90",
    "engine_id": 1,
    "train_url": "/usr/train/",
    "log_url": "/usr/log/",
    "model_id": 1
}
support.huaweicloud.com/api-modelarts/modelarts_03_0060.html