The training job ID.
await mlTrainingClient.cancelTrainingJob('<training-job-id>');
For more information, see ML Training API.
Delete a completed training job.
The training job ID.
await mlTrainingClient.deleteCompletedTrainingJob('<training-job-id>');
For more information, see ML Training API.
Get a training job metadata.
The training job ID.
const job = await mlTrainingClient.getTrainingJob('<training-job-id>');
For more information, see ML Training API.
List training jobs.
The organization ID.
The training job status.
const jobs = await mlTrainingClient.listTrainingJobs(
'<organization-id>',
TrainingStatus.RUNNING
);
For more information, see ML Training API.
Submit a training job from a custom training script.
The organization ID.
The dataset ID.
The registry item ID.
The registry item version.
The model name.
The model version.
await mlTrainingClient.submitCustomTrainingJob(
'<organization-id>',
'<dataset-id>',
'viam:classification-tflite',
'1.0.0',
'<your-model-name>',
'1.0.0'
);
For more information, see ML Training API.
Submit a training job.
The organization ID.
The dataset ID.
The model name.
The model version.
The model type.
The tags.
await mlTrainingClient.submitTrainingJob(
'<organization-id>',
'<dataset-id>',
'<your-model-name>',
'1.0.0',
ModelType.SINGLE_LABEL_CLASSIFICATION,
['tag1', 'tag2']
);
For more information, see ML Training API.
Cancel a training job.