ModelVersionProps
Properties for defining a ModelVersion.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pai-modelversion
Initializer
using AlibabaCloud.SDK.ROS.CDK.Pai;
new ModelVersionProps {
object ModelId,
object Uri,
object ApprovalStatus = null,
object ExtraInfo = null,
object FormatType = null,
object FrameworkType = null,
object InferenceSpec = null,
object Labels = null,
object Metrics = null,
object Options = null,
object SourceId = null,
object SourceType = null,
object TrainingSpec = null,
object VersionDescription = null,
object VersionName = null
};
Properties
| Name | Type | Description |
|---|---|---|
ModelId | object | Property modelId: Model ID. |
Uri | object | Property uri: Model version URI, that is, the location where the model is stored. |
ApprovalStatus | object | Property approvalStatus: Admission status, with values as follows: - Pending: to be determined. |
ExtraInfo | object | Property extraInfo: The additional information. |
FormatType | object | Property formatType: Model format, possible values: - OfflineModel - SavedModel - Keras H5 - Frozen Pb - Caffe Prototxt - TorchScript - XGBoost - PMML - AlinkModel - ONNX. |
FrameworkType | object | Property frameworkType: Model framework, possible values: - Pytorch - XGBoost - Keras - Caffe - Alink - Xflow - TensorFlow. |
InferenceSpec | object | Property inferenceSpec: Describes how to apply to downstream inference services. |
Labels | object | Property labels: List of model version labels. |
Metrics | object | Property metrics: The metrics for the model. |
Options | object | Property options: The extended field. |
SourceId | object | Property sourceId: Source ID. |
SourceType | object | Property sourceType: Model source type, possible values: - Custom: Custom. |
TrainingSpec | object | Property trainingSpec: Training configuration. |
VersionDescription | object | Property versionDescription: Model version description. |
VersionName | object | Property versionName: The model version, which is unique for each model. |
ModelIdRequired
public object ModelId { get; set; }
- Type: object
Property modelId: Model ID.
For details about how to obtain the model ID.
UriRequired
public object Uri { get; set; }
- Type: object
Property uri: Model version URI, that is, the location where the model is stored.
Possible values are:
- The HTTP(S) address of the model, for example: 'https://myweb.com/mymodel.tar.gz '.
- If the model is stored in OSS, the format is 'oss://
. /object '. For the endpoint configuration, see Access domain name and data center. For example, see OSS:// mybucket/'.
ApprovalStatusOptional
public object ApprovalStatus { get; set; }
- Type: object
Property approvalStatus: Admission status, with values as follows: - Pending: to be determined.
- Approved: Allow to go online.
- Rejected: Online is not allowed.
ExtraInfoOptional
public object ExtraInfo { get; set; }
- Type: object
Property extraInfo: The additional information.
FormatTypeOptional
public object FormatType { get; set; }
- Type: object
Property formatType: Model format, possible values: - OfflineModel - SavedModel - Keras H5 - Frozen Pb - Caffe Prototxt - TorchScript - XGBoost - PMML - AlinkModel - ONNX.
FrameworkTypeOptional
public object FrameworkType { get; set; }
- Type: object
Property frameworkType: Model framework, possible values: - Pytorch - XGBoost - Keras - Caffe - Alink - Xflow - TensorFlow.
InferenceSpecOptional
public object InferenceSpec { get; set; }
- Type: object
Property inferenceSpec: Describes how to apply to downstream inference services.
For example, describe the processor and container of EAS. Example: { "processor": "tensorflow_gpu_1.12" }
LabelsOptional
public object Labels { get; set; }
- Type: object
Property labels: List of model version labels.
MetricsOptional
public object Metrics { get; set; }
- Type: object
Property metrics: The metrics for the model.
The length after serialization is limited to 8,192. Example: { "Results": [{ "Dataset": { "DatasetId": "d-sdkjanksaklerhfd" }, "Metrics": { "cer": 0.175 } }, { "Dataset": { "Uri": "oss://xxxx/" }, "Metrics": { "cer": 0.172 } }] }
OptionsOptional
public object Options { get; set; }
- Type: object
Property options: The extended field.
This is a JSON string.
SourceIdOptional
public object SourceId { get; set; }
- Type: object
Property sourceId: Source ID.
- When the source type is Custom, this field is not restricted.
-
When the source is PAIFlow or TrainingService, the format is: region=
,workspaceId= ,kind= ,id= Among them: -
region is the Alibaba Cloud region ID.
- workspaceId indicates the workspace ID.
- kind: is a type. Value: PipelineRun(PAIFlow workflow);ServiceJob (training service).
- id: is a unique identifier.
SourceTypeOptional
public object SourceType { get; set; }
- Type: object
Property sourceType: Model source type, possible values: - Custom: Custom.
- PAIFlow:PAI workflow.
- TrainingService:PAI training service.
TrainingSpecOptional
public object TrainingSpec { get; set; }
- Type: object
Property trainingSpec: Training configuration.
Configuration for fine-tuning, incremental training.
VersionDescriptionOptional
public object VersionDescription { get; set; }
- Type: object
Property versionDescription: Model version description.
VersionNameOptional
public object VersionName { get; set; }
- Type: object
Property versionName: The model version, which is unique for each model.
If you leave this parameter empty, the first version is 0.1.0 by default. After that, the minor version number is increased by 1 in sequence. For example, the second version number is 0.2.0. A version number consists of a major version number, a minor version number, and a stage version number, separated by periods (.). The major version number and minor version number are numeric. The stage version number begins with a digit and can include numbers, underscores, and letters. For example, the version number is 1.1.0 or 2.3.4_beta.