Index
AutoMl
(interface)PredictionService
(interface)AnnotationPayload
(message)ClassificationAnnotation
(message)ClassificationEvaluationMetrics
(message)ClassificationEvaluationMetrics.ConfidenceMetricsEntry
(message)ClassificationEvaluationMetrics.ConfusionMatrix
(message)ClassificationEvaluationMetrics.ConfusionMatrix.Row
(message)ClassificationType
(enum)CreateDatasetRequest
(message)CreateModelOperationMetadata
(message)CreateModelRequest
(message)Dataset
(message)DeleteDatasetRequest
(message)DeleteModelRequest
(message)DeployModelRequest
(message)ExamplePayload
(message)GcsDestination
(message)GcsSource
(message)GetDatasetRequest
(message)GetModelEvaluationRequest
(message)GetModelRequest
(message)Image
(message)ImageClassificationDatasetMetadata
(message)ImageClassificationModelMetadata
(message)ImportDataRequest
(message)InputConfig
(message)ListDatasetsRequest
(message)ListDatasetsResponse
(message)ListModelEvaluationsRequest
(message)ListModelEvaluationsResponse
(message)ListModelsRequest
(message)ListModelsResponse
(message)Model
(message)Model.DeploymentState
(enum)ModelEvaluation
(message)OperationMetadata
(message)OutputConfig
(message)PredictRequest
(message)PredictResponse
(message)TextClassificationDatasetMetadata
(message)TextClassificationModelMetadata
(message)TextSnippet
(message)TranslationAnnotation
(message)TranslationDatasetMetadata
(message)TranslationEvaluationMetrics
(message)TranslationModelMetadata
(message)UndeployModelRequest
(message)
AutoMl
AutoML Server API.
The resource names are assigned by the server. The server never reuses names that it has created after the resources with those names are deleted.
An ID of a resource is the last element of the item's resource name. For projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
, then the id for the item is {dataset_id}
.
CreateDataset | |
---|---|
Creates a dataset.
|
CreateModel | |
---|---|
Creates a model. Returns a Model in the
|
DeleteDataset | |
---|---|
Deletes a dataset and all of its contents. Returns empty response in the
|
DeleteModel | |
---|---|
Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and does not change the status of the deployed model in the production environment. Returns
|
DeployModel | |
---|---|
Deploys model. Returns a [DeployModelResponse][] in the
|
GetDataset | |
---|---|
Gets a dataset.
|
GetModel | |
---|---|
Gets a model.
|
GetModelEvaluation | |
---|---|
Gets a model evaluation.
|
ImportData | |
---|---|
Imports data into a dataset. Returns an empty response in the
|
ListDatasets | |
---|---|
Lists datasets in a project.
|
ListModelEvaluations | |
---|---|
Lists model evaluations.
|
ListModels | |
---|---|
Lists models.
|
UndeployModel | |
---|---|
Undeploys model. Returns an
|
PredictionService
AutoML Prediction API.
Predict | |
---|---|
Perform a prediction.
|
AnnotationPayload
Contains annotation information that is relevant to AutoML.
Fields | ||
---|---|---|
annotation_spec_id |
Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use. |
|
display_name |
Output only. The value of |
|
Union field detail . Output only . Additional information about the annotation specific to the AutoML solution. detail can be only one of the following: |
||
translation |
Annotation details for translation. |
|
classification |
Annotation details for content or image classification. |
ClassificationAnnotation
Contains annotation details specific to classification.
Fields | |
---|---|
score |
Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence that the annotation is positive. If a user approves an annotation as negative or positive, the score value remains unchanged. If a user creates an annotation, the score is 0 for negative or 1 for positive. |
ClassificationEvaluationMetrics
Model evaluation metrics for classification problems. Visible only to v1beta1
Fields | |
---|---|
au_prc |
Output only. The Area under precision recall curve metric. |
base_au_prc |
Output only. The Area under precision recall curve metric based on priors. |
confidence_metrics_entry[] |
Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it. |
confusion_matrix |
Output only. Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of labels is no more than 10. Only set for model level evaluation, not for evaluation per label. |
annotation_spec_id[] |
Output only. The annotation spec ids used for this evaluation. |
ConfidenceMetricsEntry
Metrics for a single confidence threshold.
Fields | |
---|---|
confidence_threshold |
Output only. The confidence threshold value used to compute the metrics. |
recall |
Output only. Recall under the given confidence threshold. |
precision |
Output only. Precision under the given confidence threshold. |
f1_score |
Output only. The harmonic mean of recall and precision. |
recall_at1 |
Output only. The recall when only considering the label that has the highest prediction score and not below the confidence threshold for each example. |
precision_at1 |
Output only. The precision when only considering the label that has the highest predictionscore and not below the confidence threshold for each example. |
f1_score_at1 |
Output only. The harmonic mean of |
ConfusionMatrix
Confusion matrix of the model running the classification.
Fields | |
---|---|
annotation_spec_id[] |
Output only. IDs of the annotation specs used in the confusion matrix. |
row[] |
Output only. Rows in the confusion matrix. The number of rows is equal to the size of |
Row
Output only. A row in the confusion matrix.
Fields | |
---|---|
example_count[] |
Output only. Value of the specific cell in the confusion matrix. The number of values each row is equal to the size of annotatin_spec_id. |
ClassificationType
Type of the classification problem.
Enums | |
---|---|
CLASSIFICATION_TYPE_UNSPECIFIED |
Should not be used, an un-set enum has this value by default. |
MULTICLASS |
At most one label is allowed per example. |
MULTILABEL |
Multiple labels are allowed for one example. |
CreateDatasetRequest
Request message for AutoMl.CreateDataset
.
Fields | |
---|---|
parent |
The resource name of the project to create the dataset for. Authorization requires the following Google IAM permission on the specified resource
|
dataset |
The dataset to create. |
CreateModelOperationMetadata
Details of CreateModel operation.
CreateModelRequest
Request message for AutoMl.CreateModel
.
Fields | |
---|---|
parent |
Resource name of the parent project where the model is being created. Authorization requires the following Google IAM permission on the specified resource
|
model |
The model to create. |
Dataset
A workspace for solving a single, particular machine learning (ML) problem. A workspace contains examples that may be annotated.
Fields | ||
---|---|---|
name |
Output only. The resource name of the dataset. Form: |
|
display_name |
Required. The name of the dataset 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. |
|
example_count |
Output only. The number of examples in the dataset. |
|
create_time |
Output only. Timestamp when this dataset was created. |
|
Union field dataset_metadata . Required. The dataset metadata that is specific to the problem type. dataset_metadata can be only one of the following: |
||
translation_dataset_metadata |
Metadata for a dataset used for translation. |
|
image_classification_dataset_metadata |
Metadata for a dataset used for image classification. |
|
text_classification_dataset_metadata |
Metadata for a dataset used for text classification. |
DeleteDatasetRequest
Request message for AutoMl.DeleteDataset
.
Fields | |
---|---|
name |
The resource name of the dataset to delete. Authorization requires the following Google IAM permission on the specified resource
|
DeleteModelRequest
Request message for AutoMl.DeleteModel
.
Fields | |
---|---|
name |
Resource name of the model being deleted. Authorization requires the following Google IAM permission on the specified resource
|
DeployModelRequest
Request message for AutoMl.DeployModel
.
Fields | |
---|---|
name |
Resource name of the model to deploy. Authorization requires the following Google IAM permission on the specified resource
|
ExamplePayload
Example data used for training or prediction.
Fields | ||
---|---|---|
Union field payload . Required. Input only. The example data. payload can be only one of the following: |
||
image |
An example image. |
|
text_snippet |
Example text. |
GcsDestination
The Google Cloud Storage location where the output must be written to
Fields | |
---|---|
output_uri_prefix |
Required. Google Cloud Storage URI to output directory, up to 2000 characters long. Accepted forms: * Prefix path: gs://bucket/directory The requesting user must have write permission to the bucket. The directory is created if it doesn't exist. |
GcsSource
The Google Cloud Storage location for the input content.
Fields | |
---|---|
input_uris[] |
Required. Google Cloud Storage URIs to input files, up to 2000 characters long. Accepted forms: * Full object path: gs://bucket/directory/object.csv |
GetDatasetRequest
Request message for AutoMl.GetDataset
.
Fields | |
---|---|
name |
The resource name of the dataset to retrieve. Authorization requires the following Google IAM permission on the specified resource
|
GetModelEvaluationRequest
Request message for AutoMl.GetModelEvaluation
.
Fields | |
---|---|
name |
Resource name for the model evaluation. Authorization requires the following Google IAM permission on the specified resource
|
GetModelRequest
Request message for AutoMl.GetModel
.
Fields | |
---|---|
name |
Resource name of the model. Authorization requires the following Google IAM permission on the specified resource
|
Image
A representation of an image.
Fields | ||
---|---|---|
thumbnail_uri |
Output only. HTTP URI to the thumbnail image. |
|
Union field data . Input only. The data representing the image. For Predict calls [image_bytes][] must be set, as other options are not currently supported by prediction API. You can read the contents of an uploaded image by using the [content_uri][] field. data can be only one of the following: |
||
image_bytes |
Image content represented as a stream of bytes. Note: As with all |
|
input_config |
An input config specifying the content of the image. |
ImageClassificationDatasetMetadata
Dataset metadata that is specific to image classification.
Fields | |
---|---|
classification_type |
Required. Type of the classification problem. |
ImageClassificationModelMetadata
Model metadata for image classification.
Fields | |
---|---|
base_model_id |
Optional. The ID of the |
train_budget |
Required. The train budget of creating this model. The actual |
train_cost |
Output only. The actual train cost of creating this model. If this model is created from a |
stop_reason |
Output only. The reason that this create model operation stopped, e.g. BUDGET_REACHED, MODEL_CONVERGED. |
ImportDataRequest
Request message for AutoMl.ImportData
.
Fields | |
---|---|
name |
Required. Dataset name. Dataset must already exist. All imported annotations and examples will be added. Authorization requires the following Google IAM permission on the specified resource
|
input_config |
Required. The desired input location. |
InputConfig
Input configuration.
Fields | |
---|---|
gcs_source |
The Google Cloud Storage location for the input content. |
ListDatasetsRequest
Request message for AutoMl.ListDatasets
.
Fields | |
---|---|
parent |
The resource name of the project from which to list datasets. Authorization requires the following Google IAM permission on the specified resource
|
filter |
An expression for filtering the results of the request.
An example of using the filter is:
|
page_size |
Requested page size. Server may return fewer results than requested. If unspecified, server will pick a default size. |
page_token |
A token identifying a page of results for the server to return Typically obtained via |
ListDatasetsResponse
Response message for AutoMl.ListDatasets
.
Fields | |
---|---|
datasets[] |
The datasets read. |
next_page_token |
A token to retrieve next page of results. Pass to |
ListModelEvaluationsRequest
Request message for AutoMl.ListModelEvaluations
.
Fields | |
---|---|
parent |
Resource name of the model to list the model evaluations for. If modelId is set as "-", this will list model evaluations from across all models of the parent location. Authorization requires the following Google IAM permission on the specified resource
|
filter |
An expression for filtering the results of the request.
Some examples of using the filter are:
|
page_size |
Requested page size. |
page_token |
A token identifying a page of results for the server to return. Typically obtained via |
ListModelEvaluationsResponse
Response message for AutoMl.ListModelEvaluations
.
Fields | |
---|---|
model_evaluation[] |
List of model evaluations in the requested page. |
next_page_token |
A token to retrieve next page of results. Pass to [ListModelEvaluations.page_token][] to obtain that page. |
ListModelsRequest
Request message for AutoMl.ListModels
.
Fields | |
---|---|
parent |
Resource name of the project, from which to list the models. Authorization requires the following Google IAM permission on the specified resource
|
filter |
An expression for filtering the results of the request.
Some examples of using the filter are:
|
page_size |
Requested page size. |
page_token |
A token identifying a page of results for the server to return Typically obtained via |
ListModelsResponse
Response message for AutoMl.ListModels
.
Fields | |
---|---|
model[] |
List of models in the requested page. |
next_page_token |
A token to retrieve next page of results. Pass to [ListModels.page_token][] to obtain that page. |
Model
API proto representing a trained machine learning model.
Fields | ||
---|---|---|
name |
Output only. Resource name of the model. Format: |
|
display_name |
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. |
|
dataset_id |
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 |
Output only. Timestamp when this model was created. |
|
update_time |
Output only. Timestamp when this model was last updated. |
|
deployment_state |
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed. |
|
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: |
||
image_classification_model_metadata |
Metadata for image classification models. |
|
text_classification_model_metadata |
Metadata for text classification models. |
|
translation_model_metadata |
Metadata for translation models. |
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. |
ModelEvaluation
Evaluation results of a model.
Fields | ||
---|---|---|
name |
Output only. Resource name of the model evaluation. Format:
|
|
annotation_spec_id |
Output only. The ID of the annotation spec that the model evaluation applies to. The ID is empty for overall model evaluation. NOTE: Currently there is no way to obtain the display_name of the annotation spec from its ID. To see the display_names, review the model evaluations in the UI. |
|
create_time |
Output only. Timestamp when this model evaluation was created. |
|
evaluated_example_count |
Output only. The number of examples used for model evaluation. |
|
Union field metrics . Output only. Problem type specific evaluation metrics. metrics can be only one of the following: |
||
classification_evaluation_metrics |
Evaluation metrics for models on classification problems models. |
|
translation_evaluation_metrics |
Evaluation metrics for models on translation models. |
OperationMetadata
Metadata used across all long running operations returned by AutoML API.
Fields | |
---|---|
progress_percent |
Output only. Progress of operation. Range: [0, 100]. |
partial_failures[] |
Output only. Partial failures encountered. E.g. single files that couldn't be read. This field should never exceed 20 entries. Status details field will contain standard Google Cloud error details. |
create_time |
Output only. Time when the operation was created. |
update_time |
Output only. Time when the operation was updated for the last time. |
create_model_details |
Details of CreateModel operation. |
OutputConfig
Output configuration.
Fields | |
---|---|
gcs_destination |
The Google Cloud Storage location where the output must be written to. |
PredictRequest
Request message for PredictionService.Predict
.
Fields | |
---|---|
name |
Name of the model requested to serve the prediction. Authorization requires the following Google IAM permission on the specified resource
|
payload |
Required. Payload to perform a prediction on. The payload must match the problem type that the model was trained to solve. |
params |
Additional domain-specific parameters, any string must be up to 25000 characters long.
|
PredictResponse
Response message for PredictionService.Predict
.
Currently, this is only used to return an image recognition prediction result. More prediction output metadata might be introduced in the future.
Fields | |
---|---|
payload[] |
Prediction result. |
metadata |
Additional domain-specific prediction response metadata. |
TextClassificationDatasetMetadata
Dataset metadata for classification.
Fields | |
---|---|
classification_type |
Required. Type of the classification problem. |
TextClassificationModelMetadata
Model metadata that is specific to text classification.
TextSnippet
A representation of a text snippet.
Fields | |
---|---|
content |
Required. The content of the text snippet as a string. Up to 250000 characters long. |
mime_type |
The format of the source text. For example, "text/html" or "text/plain". If left blank the format is automatically determined from the type of the uploaded content. The default is "text/html". Up to 25000 characters long. |
content_uri |
Output only. HTTP URI where you can download the content. |
TranslationAnnotation
Annotation details specific to translation.
Fields | |
---|---|
translated_content |
Output only . The translated content. |
TranslationDatasetMetadata
Dataset metadata that is specific to translation.
Fields | |
---|---|
source_language_code |
Required. The BCP-47 language code of the source language. |
target_language_code |
Required. The BCP-47 language code of the target language. |
TranslationEvaluationMetrics
Evaluation metrics for the dataset.
Fields | |
---|---|
bleu_score |
Output only. BLEU score. |
base_bleu_score |
Output only. BLEU score for base model. |
TranslationModelMetadata
Model metadata that is specific to translation.
Fields | |
---|---|
base_model |
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: |
source_language_code |
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training. |
target_language_code |
Output only. The target language (The BCP-47 language code) that is used for training. |
UndeployModelRequest
Request message for AutoMl.UndeployModel
.
Fields | |
---|---|
name |
Resource name of the model to undeploy. Authorization requires the following Google IAM permission on the specified resource
|