Skip to content

ModelProps

Properties for defining a Model.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-nlpautoml-model

Initializer

import com.aliyun.ros.cdk.nlpautoml.ModelProps;
ModelProps.builder()
    .datasetIdList(IResolvable)
    .datasetIdList(java.util.List<java.lang.Number)
    .datasetIdList(IResolvable>)
    .modelName(java.lang.String)
    .modelName(IResolvable)
    .modelType(java.lang.String)
    .modelType(IResolvable)
    .projectId(java.lang.Number)
    .projectId(IResolvable)
//  .lr(java.lang.String)
//  .lr(IResolvable)
//  .nepochs(java.lang.String)
//  .nepochs(IResolvable)
//  .testDatasetIdList(IResolvable)
//  .testDatasetIdList(java.util.List<java.lang.Number)
//  .testDatasetIdList(IResolvable>)
    .build();

Properties

Name Type Description
datasetIdList com.aliyun.ros.cdk.core.IResolvable OR java.util.List 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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property modelName: The name of model.
modelType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property modelType: The type of model.
projectId java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property projectId: The project id to which the model belongs.
lr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property lr: Learning rate.
nepochs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property nepochs: Number of training dataset iterations.
testDatasetIdList com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property testDatasetIdList: Test set ID list.

datasetIdListRequired

public java.lang.Object getDatasetIdList();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

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.


modelNameRequired

public java.lang.Object getModelName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property modelName: The name of model.


modelTypeRequired

public java.lang.Object getModelType();
  • Type: java.lang.String OR com.aliyun.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


projectIdRequired

public java.lang.Object getProjectId();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property projectId: The project id to which the model belongs.


lrOptional

public java.lang.Object getLr();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property lr: Learning rate.


nepochsOptional

public java.lang.Object getNepochs();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property nepochs: Number of training dataset iterations.


testDatasetIdListOptional

public java.lang.Object getTestDatasetIdList();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property testDatasetIdList: Test set ID list.

Some models under text classification support adding test set data.