ModelProps
Properties for defining a Model
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-nlpautoml-model
Initializer
import { ModelProps } from '@alicloud/ros-cdk-nlpautoml'
const modelProps: ModelProps = { ... }
Properties
Name | Type | Description |
---|---|---|
datasetIdList |
@alicloud/ros-cdk-core.IResolvable | number | @alicloud/ros-cdk-core.IResolvable[] |
Property datasetIdList: The uploaded dataset must be under the same project, and the total number of marked data is greater than or equal to 4. |
modelName |
string | @alicloud/ros-cdk-core.IResolvable |
Property modelName: The name of model. |
modelType |
string | @alicloud/ros-cdk-core.IResolvable |
Property modelType: The type of model. |
projectId |
number | @alicloud/ros-cdk-core.IResolvable |
Property projectId: The project id to which the model belongs. |
lr |
string | @alicloud/ros-cdk-core.IResolvable |
Property lr: Learning rate. |
nepochs |
string | @alicloud/ros-cdk-core.IResolvable |
Property nepochs: Number of training dataset iterations. |
testDatasetIdList |
@alicloud/ros-cdk-core.IResolvable | number | @alicloud/ros-cdk-core.IResolvable[] |
Property testDatasetIdList: Test set ID list. |
datasetIdList
Required
public readonly datasetIdList: IResolvable | number | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | number | @alicloud/ros-cdk-core.IResolvable[]
Property datasetIdList: The uploaded dataset must be under the same project, and the total number of marked data is greater than or equal to 4.
modelName
Required
public readonly modelName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property modelName: The name of model.
modelType
Required
public readonly modelType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property modelType: The type of model.
Please refer to the documentation for the parameter values corresponding to different types of models. Using the specified model type under different project, and the backend will do the verification. If the model type does not exist under the project, it will prompt that the base model is not found
projectId
Required
public readonly projectId: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property projectId: The project id to which the model belongs.
lr
Optional
public readonly lr: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property lr: Learning rate.
nepochs
Optional
public readonly nepochs: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property nepochs: Number of training dataset iterations.
testDatasetIdList
Optional
public readonly testDatasetIdList: IResolvable | number | IResolvable[];
- Type: @alicloud/ros-cdk-core.IResolvable | number | @alicloud/ros-cdk-core.IResolvable[]
Property testDatasetIdList: Test set ID list.
Some models under text classification support adding test set data.