-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(automl): add support for image classification, image object detection, text classification, text extraction; add batch_predict
; add deploy_model
, undeploy_model
, export_model
; add annotation specs (via synth)
#9628
Conversation
CI fails in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes for myself to make sense of what is in this commit
High level summary:
- Add support for Image Classification, Image Object Detection, Text Classification, Text Extraction, and Text Sentiment
- Add
batch_predict
- Add
deploy_model
,undeploy_model
, andexport_model
- Add annotation specs
@@ -878,6 +892,75 @@ def export_data( | |||
metadata_type=proto_operations_pb2.OperationMetadata, | |||
) | |||
|
|||
def get_annotation_spec( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add annotation specs
@@ -1324,6 +1407,307 @@ def delete_model( | |||
metadata_type=proto_operations_pb2.OperationMetadata, | |||
) | |||
|
|||
def deploy_model( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add deploy_model
metadata_type=proto_operations_pb2.OperationMetadata, | ||
) | ||
|
||
def undeploy_model( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add undeploy_model
metadata_type=proto_operations_pb2.OperationMetadata, | ||
) | ||
|
||
def export_model( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add export_model
@@ -19,6 +19,80 @@ | |||
import enum | |||
|
|||
|
|||
class ClassificationType(enum.IntEnum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add ClasisificationType
enum (classification problem type)
"magnitude" from the previous Natural Language Sentiment | ||
Analysis API. | ||
""", | ||
# @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentAnnotation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TextSentimentAnnotation
the overall model evaluation, not for evaluation of a single | ||
annotation spec. | ||
""", | ||
# @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentEvaluationMetrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TextSentimentEvaluationMetrics
node_count: | ||
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 node\_qps field. | ||
""", | ||
# @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageClassificationModelMetadata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add node_qps
and node_count
to ImageClassificationModelMetadata
in v1beta1
additional_optimization_objective_config: | ||
Additional optimization objective configuration. Required for | ||
``MAXIMIZE_PRECISION_AT_RECALL`` and | ||
``MAXIMIZE_RECALL_AT_PRECISION``, otherwise unused. | ||
optimization_objective_recall_value: | ||
Required when optimization\_objective is | ||
"MAXIMIZE\_PRECISION\_AT\_RECALL". Must be between 0 and 1, | ||
inclusive. | ||
optimization_objective_precision_value: | ||
Required when optimization\_objective is | ||
"MAXIMIZE\_RECALL\_AT\_PRECISION". Must be between 0 and 1, | ||
inclusive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add additional_optimization_objective_config
, optimization_objective_recall_value
, optimization_objective_precision_value
to TablesModelMetadata
Attributes: | ||
classification_type: | ||
Output only. Classification type of the dataset used to train | ||
this model. | ||
""", | ||
# @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextClassificationModelMetadata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add classification_type
to v1beta1.TextClassificationModelMetadata
batch_predict
; add deploy_model
, undeploy_model
, export_model
, add annotation specs (via synth)
batch_predict
; add deploy_model
, undeploy_model
, export_model
, add annotation specs (via synth)batch_predict
; add deploy_model
, undeploy_model
, export_model
, add annotation specs (via synth)
batch_predict
; add deploy_model
, undeploy_model
, export_model
, add annotation specs (via synth)batch_predict
; add deploy_model
, undeploy_model
, export_model
; add annotation specs (via synth)
e8164ea
to
95cbec9
Compare
Docs build is failing because the requests docs are down. 😭
|
…ction, text classification, text extraction; add `batch_predict`; add `deploy_model`, `undeploy_model`, `export_model`; add annotation specs (via synth) (#9628)
This PR was generated using Autosynth. 🌈
Log from Synthtool