Cloud AutoML V1beta1 Client - Class Model (1.5.4)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class Model.

API proto representing a trained machine learning model.

Generated from protobuf message google.cloud.automl.v1beta1.Model

Namespace

Google \ Cloud \ AutoMl \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ translation_model_metadata Google\Cloud\AutoMl\V1beta1\TranslationModelMetadata

Metadata for translation models.

↳ image_classification_model_metadata Google\Cloud\AutoMl\V1beta1\ImageClassificationModelMetadata

Metadata for image classification models.

↳ text_classification_model_metadata Google\Cloud\AutoMl\V1beta1\TextClassificationModelMetadata

Metadata for text classification models.

↳ image_object_detection_model_metadata Google\Cloud\AutoMl\V1beta1\ImageObjectDetectionModelMetadata

Metadata for image object detection models.

↳ video_classification_model_metadata Google\Cloud\AutoMl\V1beta1\VideoClassificationModelMetadata

Metadata for video classification models.

↳ video_object_tracking_model_metadata Google\Cloud\AutoMl\V1beta1\VideoObjectTrackingModelMetadata

Metadata for video object tracking models.

↳ text_extraction_model_metadata Google\Cloud\AutoMl\V1beta1\TextExtractionModelMetadata

Metadata for text extraction models.

↳ tables_model_metadata Google\Cloud\AutoMl\V1beta1\TablesModelMetadata

Metadata for Tables models.

↳ text_sentiment_model_metadata Google\Cloud\AutoMl\V1beta1\TextSentimentModelMetadata

Metadata for text sentiment models.

↳ name string

Output only. Resource name of the model. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

↳ display_name string

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.

↳ dataset_id string

Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.

↳ create_time Google\Protobuf\Timestamp

Output only. Timestamp when the model training finished and can be used for prediction.

↳ update_time Google\Protobuf\Timestamp

Output only. Timestamp when this model was last updated.

↳ deployment_state int

Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.

getTranslationModelMetadata

Metadata for translation models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TranslationModelMetadata|null

hasTranslationModelMetadata

setTranslationModelMetadata

Metadata for translation models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TranslationModelMetadata
Returns
TypeDescription
$this

getImageClassificationModelMetadata

Metadata for image classification models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\ImageClassificationModelMetadata|null

hasImageClassificationModelMetadata

setImageClassificationModelMetadata

Metadata for image classification models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\ImageClassificationModelMetadata
Returns
TypeDescription
$this

getTextClassificationModelMetadata

Metadata for text classification models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TextClassificationModelMetadata|null

hasTextClassificationModelMetadata

setTextClassificationModelMetadata

Metadata for text classification models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TextClassificationModelMetadata
Returns
TypeDescription
$this

getImageObjectDetectionModelMetadata

Metadata for image object detection models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\ImageObjectDetectionModelMetadata|null

hasImageObjectDetectionModelMetadata

setImageObjectDetectionModelMetadata

Metadata for image object detection models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\ImageObjectDetectionModelMetadata
Returns
TypeDescription
$this

getVideoClassificationModelMetadata

Metadata for video classification models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\VideoClassificationModelMetadata|null

hasVideoClassificationModelMetadata

setVideoClassificationModelMetadata

Metadata for video classification models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\VideoClassificationModelMetadata
Returns
TypeDescription
$this

getVideoObjectTrackingModelMetadata

Metadata for video object tracking models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\VideoObjectTrackingModelMetadata|null

hasVideoObjectTrackingModelMetadata

setVideoObjectTrackingModelMetadata

Metadata for video object tracking models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\VideoObjectTrackingModelMetadata
Returns
TypeDescription
$this

getTextExtractionModelMetadata

Metadata for text extraction models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TextExtractionModelMetadata|null

hasTextExtractionModelMetadata

setTextExtractionModelMetadata

Metadata for text extraction models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TextExtractionModelMetadata
Returns
TypeDescription
$this

getTablesModelMetadata

Metadata for Tables models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TablesModelMetadata|null

hasTablesModelMetadata

setTablesModelMetadata

Metadata for Tables models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TablesModelMetadata
Returns
TypeDescription
$this

getTextSentimentModelMetadata

Metadata for text sentiment models.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TextSentimentModelMetadata|null

hasTextSentimentModelMetadata

setTextSentimentModelMetadata

Metadata for text sentiment models.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TextSentimentModelMetadata
Returns
TypeDescription
$this

getName

Output only. Resource name of the model.

Format: projects/{project_id}/locations/{location_id}/models/{model_id}

Returns
TypeDescription
string

setName

Output only. Resource name of the model.

Format: projects/{project_id}/locations/{location_id}/models/{model_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

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.

Returns
TypeDescription
string

setDisplayName

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatasetId

Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.

Returns
TypeDescription
string

setDatasetId

Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Timestamp when the model training finished and can be used for prediction.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when the model training finished and can be used for prediction.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Timestamp when this model was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp when this model was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDeploymentState

Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.

Returns
TypeDescription
int

setDeploymentState

Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getModelMetadata

Returns
TypeDescription
string