ModelProps
Properties for defining a Model.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-nlpautoml-model
Initializer
import ros_cdk_nlpautoml
ros_cdk_nlpautoml.ModelProps(
dataset_id_list: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]],
model_name: typing.Union[str, IResolvable],
model_type: typing.Union[str, IResolvable],
project_id: typing.Union[typing.Union[int, float], IResolvable],
lr: typing.Union[str, IResolvable] = None,
nepochs: typing.Union[str, IResolvable] = None,
test_dataset_id_list: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]] = None
)
Properties
| Name | Type | Description |
|---|---|---|
dataset_id_list |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], 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. |
model_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property modelName: The name of model. |
model_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property modelType: The type of model. |
project_id |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property projectId: The project id to which the model belongs. |
lr |
typing.Union[str, ros_cdk_core.IResolvable] |
Property lr: Learning rate. |
nepochs |
typing.Union[str, ros_cdk_core.IResolvable] |
Property nepochs: Number of training dataset iterations. |
test_dataset_id_list |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]]] |
Property testDatasetIdList: Test set ID list. |
dataset_id_listRequired
dataset_id_list: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], 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.
model_nameRequired
model_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property modelName: The name of model.
model_typeRequired
model_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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
project_idRequired
project_id: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property projectId: The project id to which the model belongs.
lrOptional
lr: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property lr: Learning rate.
nepochsOptional
nepochs: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property nepochs: Number of training dataset iterations.
test_dataset_id_listOptional
test_dataset_id_list: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]]]
Property testDatasetIdList: Test set ID list.
Some models under text classification support adding test set data.