Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateModelCommand

Creates a new version of a model within an an Amazon Lookout for Vision project. CreateModel is an asynchronous operation in which Amazon Lookout for Vision trains, tests, and evaluates a new version of a model.

To get the current status, check the Status field returned in the response from DescribeModel.

If the project has a single dataset, Amazon Lookout for Vision internally splits the dataset to create a training and a test dataset. If the project has a training and a test dataset, Lookout for Vision uses the respective datasets to train and test the model.

After training completes, the evaluation metrics are stored at the location specified in OutputConfig.

This operation requires permissions to perform the lookoutvision:CreateModel operation. If you want to tag your model, you also require permission to the lookoutvision:TagResource operation.

example

Use a bare-bones client and the command you need to make an API call.

import { LookoutVisionClient, CreateModelCommand } from "@aws-sdk/client-lookoutvision"; // ES Modules import
// const { LookoutVisionClient, CreateModelCommand } = require("@aws-sdk/client-lookoutvision"); // CommonJS import
const client = new LookoutVisionClient(config);
const command = new CreateModelCommand(input);
const response = await client.send(command);
see

CreateModelCommandInput for command's input shape.

see

CreateModelCommandOutput for command's response shape.

see

config for LookoutVisionClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateModelCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateModelCommandInput, CreateModelCommandOutput>

Methods

Static getEndpointParameterInstructions