- Resource: Model
- TranslationModelMetadata
- ImageClassificationModelMetadata
- TextClassificationModelMetadata
- ImageObjectDetectionModelMetadata
- TextExtractionModelMetadata
- TextSentimentModelMetadata
- DeploymentState
- Methods
Resource: Model
API proto representing a trained machine learning model.
JSON representation | |
---|---|
{ "name": string, "displayName": string, "datasetId": string, "createTime": string, "updateTime": string, "deploymentState": enum ( |
Fields | ||
---|---|---|
name |
Output only. Resource name of the model. Format: |
|
displayName |
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter. |
|
datasetId |
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location. |
|
createTime |
Output only. Timestamp when the model training finished and can be used for prediction. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: |
|
updateTime |
Output only. Timestamp when this model was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: |
|
deploymentState |
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed. |
|
etag |
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
|
labels |
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels. |
|
Union field model_metadata . Required. The model metadata that is specific to the problem type. Must match the metadata type of the dataset used to train the model. model_metadata can be only one of the following: |
||
translationModelMetadata |
Metadata for translation models. |
|
imageClassificationModelMetadata |
Metadata for image classification models. |
|
textClassificationModelMetadata |
Metadata for text classification models. |
|
imageObjectDetectionModelMetadata |
Metadata for image object detection models. |
|
textExtractionModelMetadata |
Metadata for text extraction models. |
|
textSentimentModelMetadata |
Metadata for text sentiment models. |
TranslationModelMetadata
Model metadata that is specific to translation.
JSON representation | |
---|---|
{ "baseModel": string, "sourceLanguageCode": string, "targetLanguageCode": string } |
Fields | |
---|---|
baseModel |
The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: |
sourceLanguageCode |
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training. |
targetLanguageCode |
Output only. The target language (The BCP-47 language code) that is used for training. |
ImageClassificationModelMetadata
Model metadata for image classification.
JSON representation | |
---|---|
{ "baseModelId": string, "trainBudgetMilliNodeHours": string, "trainCostMilliNodeHours": string, "stopReason": string, "modelType": string, "nodeQps": number, "nodeCount": string } |
Fields | |
---|---|
baseModelId |
Optional. The ID of the |
trainBudgetMilliNodeHours |
The train budget of creating this model, expressed in milli node hours i.e. 1,000 value in this field means 1 node hour. The actual |
trainCostMilliNodeHours |
Output only. The actual train cost of creating this model, expressed in milli node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed to not exceed the train budget. |
stopReason |
Output only. The reason that this create model operation stopped, e.g. |
modelType |
Optional. Type of the model. The available values are: * |
nodeQps |
Output only. An approximate number of online prediction QPS that can be supported by this model per each node on which it is deployed. |
nodeCount |
Output only. The number of nodes this model is deployed on. A node is an abstraction of a machine resource, which can handle online prediction QPS as given in the nodeQps field. |
TextClassificationModelMetadata
Model metadata that is specific to text classification.
JSON representation | |
---|---|
{
"classificationType": enum ( |
Fields | |
---|---|
classificationType |
Output only. Classification type of the dataset used to train this model. |
ImageObjectDetectionModelMetadata
Model metadata specific to image object detection.
JSON representation | |
---|---|
{ "modelType": string, "nodeCount": string, "nodeQps": number, "stopReason": string, "trainBudgetMilliNodeHours": string, "trainCostMilliNodeHours": string } |
Fields | |
---|---|
modelType |
Optional. Type of the model. The available values are: * |
nodeCount |
Output only. The number of nodes this model is deployed on. A node is an abstraction of a machine resource, which can handle online prediction QPS as given in the qps_per_node field. |
nodeQps |
Output only. An approximate number of online prediction QPS that can be supported by this model per each node on which it is deployed. |
stopReason |
Output only. The reason that this create model operation stopped, e.g. |
trainBudgetMilliNodeHours |
The train budget of creating this model, expressed in milli node hours i.e. 1,000 value in this field means 1 node hour. The actual |
trainCostMilliNodeHours |
Output only. The actual train cost of creating this model, expressed in milli node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed to not exceed the train budget. |
TextExtractionModelMetadata
Model metadata that is specific to text extraction.
TextSentimentModelMetadata
Model metadata that is specific to text sentiment.
DeploymentState
Deployment state of the model.
Enums | |
---|---|
DEPLOYMENT_STATE_UNSPECIFIED |
Should not be used, an un-set enum has this value by default. |
DEPLOYED |
Model is deployed. |
UNDEPLOYED |
Model is not deployed. |
Methods |
|
---|---|
|
Perform a batch prediction. |
|
Creates a model. |
|
Deletes a model. |
|
Deploys a model. |
|
Exports a trained, "export-able", model to a user specified Google Cloud Storage location. |
|
Gets a model. |
|
Gets the access control policy for a resource. |
|
Lists models. |
|
Updates a model. |
|
Perform an online prediction. |
|
Sets the access control policy on the specified resource. |
|
Undeploys a model. |