google-cloud-automl 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/automl.rb +1 -1
- data/lib/google/cloud/automl/v1beta1.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/automl_client.rb +24 -23
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +2 -1
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/annotation_spec.rb +1 -3
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/classification.rb +2 -7
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb +9 -17
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/image.rb +33 -22
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/prediction_service.rb +18 -18
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/service.rb +22 -22
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/tables.rb +9 -0
- data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text.rb +6 -5
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +2 -1
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +4 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service_client.rb +17 -15
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +2 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +4 -7
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +3 -1
- data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +3 -3
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +3 -1
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +1 -0
- data/lib/google/cloud/automl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b27f1f9ba2899c25c089308f58bdd3ec729c2315b5b6d5ca8d12acbb1f267b3
|
4
|
+
data.tar.gz: f1afc2721d1d3fb92eb1a00f408e85c5b2af722e6ce4c8acf8e0f544634069c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68c39d500ab5c3b88f668a704cdeae620c339f8790dd71f49a23b39500a1155118b414f6916e085dab6e74018b2d721e467d40c212024fddbac8e8db1da35158
|
7
|
+
data.tar.gz: 8bcd45be0a4ea95318ec0059a5c7a5807fb7a4c4fd4f154f4f8881f6b9816068762f4ccfb6cd2904565a6f1a7466dd0ea04d9fbfa6c63f72584b3e95a0a87587
|
data/README.md
CHANGED
data/lib/google/cloud/automl.rb
CHANGED
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud AutoML API
|
24
|
+
# # Ruby Client for Cloud AutoML API
|
25
25
|
#
|
26
26
|
# [Cloud AutoML API][Product Documentation]:
|
27
27
|
# Train high-quality custom machine learning models with minimum effort and
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# rubocop:disable LineLength
|
25
25
|
|
26
26
|
##
|
27
|
-
# # Ruby Client for Cloud AutoML API
|
27
|
+
# # Ruby Client for Cloud AutoML API
|
28
28
|
#
|
29
29
|
# [Cloud AutoML API][Product Documentation]:
|
30
30
|
# Train high-quality custom machine learning models with minimum effort and
|
@@ -565,9 +565,9 @@ module Google
|
|
565
565
|
# Creates a dataset.
|
566
566
|
#
|
567
567
|
# @param parent [String]
|
568
|
-
# The resource name of the project to create the dataset for.
|
568
|
+
# Required. The resource name of the project to create the dataset for.
|
569
569
|
# @param dataset [Google::Cloud::AutoML::V1beta1::Dataset | Hash]
|
570
|
-
# The dataset to create.
|
570
|
+
# Required. The dataset to create.
|
571
571
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::Dataset`
|
572
572
|
# can also be provided.
|
573
573
|
# @param options [Google::Gax::CallOptions]
|
@@ -604,7 +604,7 @@ module Google
|
|
604
604
|
# Updates a dataset.
|
605
605
|
#
|
606
606
|
# @param dataset [Google::Cloud::AutoML::V1beta1::Dataset | Hash]
|
607
|
-
# The dataset which replaces the resource on the server.
|
607
|
+
# Required. The dataset which replaces the resource on the server.
|
608
608
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::Dataset`
|
609
609
|
# can also be provided.
|
610
610
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
@@ -644,7 +644,7 @@ module Google
|
|
644
644
|
# Gets a dataset.
|
645
645
|
#
|
646
646
|
# @param name [String]
|
647
|
-
# The resource name of the dataset to retrieve.
|
647
|
+
# Required. The resource name of the dataset to retrieve.
|
648
648
|
# @param options [Google::Gax::CallOptions]
|
649
649
|
# Overrides the default settings for this call, e.g, timeout,
|
650
650
|
# retries, etc.
|
@@ -674,7 +674,7 @@ module Google
|
|
674
674
|
# Lists datasets in a project.
|
675
675
|
#
|
676
676
|
# @param parent [String]
|
677
|
-
# The resource name of the project from which to list datasets.
|
677
|
+
# Required. The resource name of the project from which to list datasets.
|
678
678
|
# @param filter [String]
|
679
679
|
# An expression for filtering the results of the request.
|
680
680
|
#
|
@@ -742,7 +742,7 @@ module Google
|
|
742
742
|
# {Google::Longrunning::Operation#metadata metadata} field.
|
743
743
|
#
|
744
744
|
# @param name [String]
|
745
|
-
# The resource name of the dataset to delete.
|
745
|
+
# Required. The resource name of the dataset to delete.
|
746
746
|
# @param options [Google::Gax::CallOptions]
|
747
747
|
# Overrides the default settings for this call, e.g, timeout,
|
748
748
|
# retries, etc.
|
@@ -956,9 +956,9 @@ module Google
|
|
956
956
|
# a global evaluation, and one evaluation for each annotation spec.
|
957
957
|
#
|
958
958
|
# @param parent [String]
|
959
|
-
# Resource name of the parent project where the model is being created.
|
959
|
+
# Required. Resource name of the parent project where the model is being created.
|
960
960
|
# @param model [Google::Cloud::AutoML::V1beta1::Model | Hash]
|
961
|
-
# The model to create.
|
961
|
+
# Required. The model to create.
|
962
962
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::Model`
|
963
963
|
# can also be provided.
|
964
964
|
# @param options [Google::Gax::CallOptions]
|
@@ -1025,7 +1025,7 @@ module Google
|
|
1025
1025
|
# Gets a model.
|
1026
1026
|
#
|
1027
1027
|
# @param name [String]
|
1028
|
-
# Resource name of the model.
|
1028
|
+
# Required. Resource name of the model.
|
1029
1029
|
# @param options [Google::Gax::CallOptions]
|
1030
1030
|
# Overrides the default settings for this call, e.g, timeout,
|
1031
1031
|
# retries, etc.
|
@@ -1055,7 +1055,7 @@ module Google
|
|
1055
1055
|
# Lists models.
|
1056
1056
|
#
|
1057
1057
|
# @param parent [String]
|
1058
|
-
# Resource name of the project, from which to list the models.
|
1058
|
+
# Required. Resource name of the project, from which to list the models.
|
1059
1059
|
# @param filter [String]
|
1060
1060
|
# An expression for filtering the results of the request.
|
1061
1061
|
#
|
@@ -1125,7 +1125,7 @@ module Google
|
|
1125
1125
|
# {Google::Longrunning::Operation#metadata metadata} field.
|
1126
1126
|
#
|
1127
1127
|
# @param name [String]
|
1128
|
-
# Resource name of the model being deleted.
|
1128
|
+
# Required. Resource name of the model being deleted.
|
1129
1129
|
# @param options [Google::Gax::CallOptions]
|
1130
1130
|
# Overrides the default settings for this call, e.g, timeout,
|
1131
1131
|
# retries, etc.
|
@@ -1189,13 +1189,14 @@ module Google
|
|
1189
1189
|
# {Google::Cloud::AutoML::V1beta1::ImageObjectDetectionModelDeploymentMetadata#node_number node_number})
|
1190
1190
|
# will reset the deployment state without pausing the model's availability.
|
1191
1191
|
#
|
1192
|
-
# Only applicable for Text Classification, Image Object Detection and
|
1192
|
+
# Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
|
1193
|
+
# deployment automatically.
|
1193
1194
|
#
|
1194
1195
|
# Returns an empty response in the
|
1195
1196
|
# {Google::Longrunning::Operation#response response} field when it completes.
|
1196
1197
|
#
|
1197
1198
|
# @param name [String]
|
1198
|
-
# Resource name of the model to deploy.
|
1199
|
+
# Required. Resource name of the model to deploy.
|
1199
1200
|
# @param image_object_detection_model_deployment_metadata [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionModelDeploymentMetadata | Hash]
|
1200
1201
|
# Model deployment metadata specific to Image Object Detection.
|
1201
1202
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::ImageObjectDetectionModelDeploymentMetadata`
|
@@ -1273,7 +1274,7 @@ module Google
|
|
1273
1274
|
# {Google::Longrunning::Operation#response response} field when it completes.
|
1274
1275
|
#
|
1275
1276
|
# @param name [String]
|
1276
|
-
# Resource name of the model to undeploy.
|
1277
|
+
# Required. Resource name of the model to undeploy.
|
1277
1278
|
# @param options [Google::Gax::CallOptions]
|
1278
1279
|
# Overrides the default settings for this call, e.g, timeout,
|
1279
1280
|
# retries, etc.
|
@@ -1333,7 +1334,7 @@ module Google
|
|
1333
1334
|
# Gets a model evaluation.
|
1334
1335
|
#
|
1335
1336
|
# @param name [String]
|
1336
|
-
# Resource name for the model evaluation.
|
1337
|
+
# Required. Resource name for the model evaluation.
|
1337
1338
|
# @param options [Google::Gax::CallOptions]
|
1338
1339
|
# Overrides the default settings for this call, e.g, timeout,
|
1339
1340
|
# retries, etc.
|
@@ -1522,7 +1523,7 @@ module Google
|
|
1522
1523
|
# Lists model evaluations.
|
1523
1524
|
#
|
1524
1525
|
# @param parent [String]
|
1525
|
-
# Resource name of the model to list the model evaluations for.
|
1526
|
+
# Required. Resource name of the model to list the model evaluations for.
|
1526
1527
|
# If modelId is set as "-", this will list model evaluations from across all
|
1527
1528
|
# models of the parent location.
|
1528
1529
|
# @param filter [String]
|
@@ -1592,7 +1593,7 @@ module Google
|
|
1592
1593
|
# Gets an annotation spec.
|
1593
1594
|
#
|
1594
1595
|
# @param name [String]
|
1595
|
-
# The resource name of the annotation spec to retrieve.
|
1596
|
+
# Required. The resource name of the annotation spec to retrieve.
|
1596
1597
|
# @param options [Google::Gax::CallOptions]
|
1597
1598
|
# Overrides the default settings for this call, e.g, timeout,
|
1598
1599
|
# retries, etc.
|
@@ -1622,7 +1623,7 @@ module Google
|
|
1622
1623
|
# Gets a table spec.
|
1623
1624
|
#
|
1624
1625
|
# @param name [String]
|
1625
|
-
# The resource name of the table spec to retrieve.
|
1626
|
+
# Required. The resource name of the table spec to retrieve.
|
1626
1627
|
# @param field_mask [Google::Protobuf::FieldMask | Hash]
|
1627
1628
|
# Mask specifying which fields to read.
|
1628
1629
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
@@ -1658,7 +1659,7 @@ module Google
|
|
1658
1659
|
# Lists table specs in a dataset.
|
1659
1660
|
#
|
1660
1661
|
# @param parent [String]
|
1661
|
-
# The resource name of the dataset to list table specs from.
|
1662
|
+
# Required. The resource name of the dataset to list table specs from.
|
1662
1663
|
# @param field_mask [Google::Protobuf::FieldMask | Hash]
|
1663
1664
|
# Mask specifying which fields to read.
|
1664
1665
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
@@ -1722,7 +1723,7 @@ module Google
|
|
1722
1723
|
# Updates a table spec.
|
1723
1724
|
#
|
1724
1725
|
# @param table_spec [Google::Cloud::AutoML::V1beta1::TableSpec | Hash]
|
1725
|
-
# The table spec which replaces the resource on the server.
|
1726
|
+
# Required. The table spec which replaces the resource on the server.
|
1726
1727
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::TableSpec`
|
1727
1728
|
# can also be provided.
|
1728
1729
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
@@ -1762,7 +1763,7 @@ module Google
|
|
1762
1763
|
# Gets a column spec.
|
1763
1764
|
#
|
1764
1765
|
# @param name [String]
|
1765
|
-
# The resource name of the column spec to retrieve.
|
1766
|
+
# Required. The resource name of the column spec to retrieve.
|
1766
1767
|
# @param field_mask [Google::Protobuf::FieldMask | Hash]
|
1767
1768
|
# Mask specifying which fields to read.
|
1768
1769
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
@@ -1798,7 +1799,7 @@ module Google
|
|
1798
1799
|
# Lists column specs in a table spec.
|
1799
1800
|
#
|
1800
1801
|
# @param parent [String]
|
1801
|
-
# The resource name of the table spec to list column specs from.
|
1802
|
+
# Required. The resource name of the table spec to list column specs from.
|
1802
1803
|
# @param field_mask [Google::Protobuf::FieldMask | Hash]
|
1803
1804
|
# Mask specifying which fields to read.
|
1804
1805
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
@@ -1862,7 +1863,7 @@ module Google
|
|
1862
1863
|
# Updates a column spec.
|
1863
1864
|
#
|
1864
1865
|
# @param column_spec [Google::Cloud::AutoML::V1beta1::ColumnSpec | Hash]
|
1865
|
-
# The column spec which replaces the resource on the server.
|
1866
|
+
# Required. The column spec which replaces the resource on the server.
|
1866
1867
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::ColumnSpec`
|
1867
1868
|
# can also be provided.
|
1868
1869
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/automl/v1beta1/temporal_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.automl.v1beta1.ClassificationAnnotation" do
|
11
11
|
optional :score, :float, 1
|
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/automl/v1beta1/geometry_pb'
|
9
8
|
require 'google/cloud/automl/v1beta1/io_pb'
|
9
|
+
require 'google/cloud/automl/v1beta1/temporal_pb'
|
10
10
|
require 'google/cloud/automl/v1beta1/text_segment_pb'
|
11
11
|
require 'google/protobuf/any_pb'
|
12
12
|
require 'google/protobuf/duration_pb'
|
13
13
|
require 'google/protobuf/struct_pb'
|
14
|
+
require 'google/api/annotations_pb'
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
16
|
add_message "google.cloud.automl.v1beta1.Image" do
|
16
17
|
optional :thumbnail_uri, :string, 4
|
@@ -26,10 +26,8 @@ module Google
|
|
26
26
|
# 'projects/\\{project_id}/locations/\\{location_id}/datasets/\\{dataset_id}/annotationSpecs/\\{annotation_spec_id}'
|
27
27
|
# @!attribute [rw] display_name
|
28
28
|
# @return [String]
|
29
|
-
# Required.
|
30
|
-
# The name of the annotation spec to show in the interface. The name can be
|
29
|
+
# Required. The name of the annotation spec to show in the interface. The name can be
|
31
30
|
# up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
|
32
|
-
# (_), and ASCII digits 0-9.
|
33
31
|
# @!attribute [rw] example_count
|
34
32
|
# @return [Integer]
|
35
33
|
# Output only. The number of examples in the parent dataset
|
@@ -140,10 +140,7 @@ module Google
|
|
140
140
|
# for each example.
|
141
141
|
# @!attribute [rw] f1_score_at1
|
142
142
|
# @return [Float]
|
143
|
-
# Output only. The harmonic mean of
|
144
|
-
# {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#recall_at1 recall_at1}
|
145
|
-
# and
|
146
|
-
# {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#precision_at1 precision_at1}.
|
143
|
+
# Output only. The harmonic mean of {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#recall_at1 recall_at1} and {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#precision_at1 precision_at1}.
|
147
144
|
# @!attribute [rw] true_positive_count
|
148
145
|
# @return [Integer]
|
149
146
|
# Output only. The number of model created labels that match a ground truth
|
@@ -193,9 +190,7 @@ module Google
|
|
193
190
|
# Output only. Value of the specific cell in the confusion matrix.
|
194
191
|
# The number of values each row has (i.e. the length of the row) is equal
|
195
192
|
# to the length of the `annotation_spec_id` field or, if that one is not
|
196
|
-
# populated, length of the
|
197
|
-
# {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name}
|
198
|
-
# field.
|
193
|
+
# populated, length of the {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
|
199
194
|
class Row; end
|
200
195
|
end
|
201
196
|
end
|
@@ -39,11 +39,9 @@ module Google
|
|
39
39
|
# characters long.
|
40
40
|
# @!attribute [rw] mime_type
|
41
41
|
# @return [String]
|
42
|
-
# Optional. The format of
|
43
|
-
#
|
44
|
-
#
|
45
|
-
# the format is automatically determined from the type of the uploaded
|
46
|
-
# {Google::Cloud::AutoML::V1beta1::TextSnippet#content content}.
|
42
|
+
# Optional. The format of {Google::Cloud::AutoML::V1beta1::TextSnippet#content content}. Currently the only two allowed
|
43
|
+
# values are "text/html" and "text/plain". If left blank, the format is
|
44
|
+
# automatically determined from the type of the uploaded {Google::Cloud::AutoML::V1beta1::TextSnippet#content content}.
|
47
45
|
# @!attribute [rw] content_uri
|
48
46
|
# @return [String]
|
49
47
|
# Output only. HTTP URI where you can download the content.
|
@@ -94,23 +92,19 @@ module Google
|
|
94
92
|
# @return [Integer]
|
95
93
|
# Number of pages in the document.
|
96
94
|
class Document
|
97
|
-
# Describes the layout information of a
|
98
|
-
# {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in
|
99
|
-
# the document.
|
95
|
+
# Describes the layout information of a {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in the document.
|
100
96
|
# @!attribute [rw] text_segment
|
101
97
|
# @return [Google::Cloud::AutoML::V1beta1::TextSegment]
|
102
98
|
# Text Segment that represents a segment in
|
103
99
|
# {Google::Cloud::AutoML::V1beta1::Document#document_text document_text}.
|
104
100
|
# @!attribute [rw] page_number
|
105
101
|
# @return [Integer]
|
106
|
-
# Page number of the
|
107
|
-
#
|
108
|
-
# in the original document, starts from 1.
|
102
|
+
# Page number of the {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in the original document, starts
|
103
|
+
# from 1.
|
109
104
|
# @!attribute [rw] bounding_poly
|
110
105
|
# @return [Google::Cloud::AutoML::V1beta1::BoundingPoly]
|
111
|
-
# The position of the
|
112
|
-
#
|
113
|
-
# in the page. Contains exactly 4
|
106
|
+
# The position of the {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in the page.
|
107
|
+
# Contains exactly 4
|
114
108
|
#
|
115
109
|
# {Google::Cloud::AutoML::V1beta1::BoundingPoly#normalized_vertices normalized_vertices}
|
116
110
|
# and they are connected by edges in the order provided, which will
|
@@ -120,9 +114,7 @@ module Google
|
|
120
114
|
# Coordinates are based on top-left as point (0,0).
|
121
115
|
# @!attribute [rw] text_segment_type
|
122
116
|
# @return [Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType]
|
123
|
-
# The type of the
|
124
|
-
# {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment}
|
125
|
-
# in document.
|
117
|
+
# The type of the {Google::Cloud::AutoML::V1beta1::Document::Layout#text_segment text_segment} in document.
|
126
118
|
class Layout
|
127
119
|
# The type of TextSegment in the context of the original document.
|
128
120
|
module TextSegmentType
|
@@ -54,38 +54,34 @@ module Google
|
|
54
54
|
# This is the default value.
|
55
55
|
# * `mobile-low-latency-1` - A model that, in addition to providing
|
56
56
|
# prediction via AutoML API, can also be exported (see
|
57
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel})
|
58
|
-
#
|
59
|
-
#
|
60
|
-
# prediction quality than other models.
|
57
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile or edge device
|
58
|
+
# with TensorFlow afterwards. Expected to have low latency, but
|
59
|
+
# may have lower prediction quality than other models.
|
61
60
|
# * `mobile-versatile-1` - A model that, in addition to providing
|
62
61
|
# prediction via AutoML API, can also be exported (see
|
63
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel})
|
64
|
-
#
|
65
|
-
# afterwards.
|
62
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile or edge device
|
63
|
+
# with TensorFlow afterwards.
|
66
64
|
# * `mobile-high-accuracy-1` - A model that, in addition to providing
|
67
65
|
# prediction via AutoML API, can also be exported (see
|
68
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel})
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
66
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile or edge device
|
67
|
+
# with TensorFlow afterwards. Expected to have a higher
|
68
|
+
# latency, but should also have a higher prediction quality
|
69
|
+
# than other models.
|
72
70
|
# * `mobile-core-ml-low-latency-1` - A model that, in addition to providing
|
73
71
|
# prediction via AutoML API, can also be exported (see
|
74
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel})
|
75
|
-
#
|
76
|
-
#
|
77
|
-
# than other models.
|
72
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile device with Core
|
73
|
+
# ML afterwards. Expected to have low latency, but may have
|
74
|
+
# lower prediction quality than other models.
|
78
75
|
# * `mobile-core-ml-versatile-1` - A model that, in addition to providing
|
79
76
|
# prediction via AutoML API, can also be exported (see
|
80
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel})
|
81
|
-
#
|
77
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile device with Core
|
78
|
+
# ML afterwards.
|
82
79
|
# * `mobile-core-ml-high-accuracy-1` - A model that, in addition to
|
83
80
|
# providing prediction via AutoML API, can also be exported
|
84
|
-
# (see
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
# prediction quality than other models.
|
81
|
+
# (see {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile device with
|
82
|
+
# Core ML afterwards. Expected to have a higher latency, but
|
83
|
+
# should also have a higher prediction quality than other
|
84
|
+
# models.
|
89
85
|
# @!attribute [rw] node_qps
|
90
86
|
# @return [Float]
|
91
87
|
# Output only. An approximate number of online prediction QPS that can
|
@@ -108,6 +104,21 @@ module Google
|
|
108
104
|
# * `cloud-low-latency-1` - A model to be used via prediction
|
109
105
|
# calls to AutoML API. Expected to have low latency, but may
|
110
106
|
# have lower prediction quality than other models.
|
107
|
+
# * `mobile-low-latency-1` - A model that, in addition to providing
|
108
|
+
# prediction via AutoML API, can also be exported (see
|
109
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile or edge device
|
110
|
+
# with TensorFlow afterwards. Expected to have low latency, but
|
111
|
+
# may have lower prediction quality than other models.
|
112
|
+
# * `mobile-versatile-1` - A model that, in addition to providing
|
113
|
+
# prediction via AutoML API, can also be exported (see
|
114
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile or edge device
|
115
|
+
# with TensorFlow afterwards.
|
116
|
+
# * `mobile-high-accuracy-1` - A model that, in addition to providing
|
117
|
+
# prediction via AutoML API, can also be exported (see
|
118
|
+
# {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}) and used on a mobile or edge device
|
119
|
+
# with TensorFlow afterwards. Expected to have a higher
|
120
|
+
# latency, but should also have a higher prediction quality
|
121
|
+
# than other models.
|
111
122
|
# @!attribute [rw] node_count
|
112
123
|
# @return [Integer]
|
113
124
|
# Output only. The number of nodes this model is deployed on. A node is an
|
@@ -17,11 +17,10 @@ module Google
|
|
17
17
|
module Cloud
|
18
18
|
module AutoML
|
19
19
|
module V1beta1
|
20
|
-
# Request message for
|
21
|
-
# {Google::Cloud::AutoML::V1beta1::PredictionService::Predict PredictionService::Predict}.
|
20
|
+
# Request message for {Google::Cloud::AutoML::V1beta1::PredictionService::Predict PredictionService::Predict}.
|
22
21
|
# @!attribute [rw] name
|
23
22
|
# @return [String]
|
24
|
-
# Name of the model requested to serve the prediction.
|
23
|
+
# Required. Name of the model requested to serve the prediction.
|
25
24
|
# @!attribute [rw] payload
|
26
25
|
# @return [Google::Cloud::AutoML::V1beta1::ExamplePayload]
|
27
26
|
# Required. Payload to perform a prediction on. The payload must match the
|
@@ -45,17 +44,12 @@ module Google
|
|
45
44
|
# boxes will be returned in the response. Default is 100, the
|
46
45
|
# requested value may be limited by server.
|
47
46
|
# * For Tables:
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# should be populated in the returned
|
52
|
-
#
|
53
|
-
# [TablesAnnotation(-s)][[google.cloud.automl.v1beta1.TablesAnnotation].
|
54
|
-
# The default is false.
|
47
|
+
# feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
|
48
|
+
# should be populated in the returned TablesAnnotation.
|
49
|
+
# The default is false.
|
55
50
|
class PredictRequest; end
|
56
51
|
|
57
|
-
# Response message for
|
58
|
-
# {Google::Cloud::AutoML::V1beta1::PredictionService::Predict PredictionService::Predict}.
|
52
|
+
# Response message for {Google::Cloud::AutoML::V1beta1::PredictionService::Predict PredictionService::Predict}.
|
59
53
|
# @!attribute [rw] payload
|
60
54
|
# @return [Array<Google::Cloud::AutoML::V1beta1::AnnotationPayload>]
|
61
55
|
# Prediction result.
|
@@ -86,11 +80,10 @@ module Google
|
|
86
80
|
# from the previous Natural Language Sentiment Analysis API.
|
87
81
|
class PredictResponse; end
|
88
82
|
|
89
|
-
# Request message for
|
90
|
-
# {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
|
83
|
+
# Request message for {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
|
91
84
|
# @!attribute [rw] name
|
92
85
|
# @return [String]
|
93
|
-
# Name of the model requested to serve the batch prediction.
|
86
|
+
# Required. Name of the model requested to serve the batch prediction.
|
94
87
|
# @!attribute [rw] input_config
|
95
88
|
# @return [Google::Cloud::AutoML::V1beta1::BatchPredictInputConfig]
|
96
89
|
# Required. The input configuration for batch prediction.
|
@@ -100,7 +93,7 @@ module Google
|
|
100
93
|
# be written.
|
101
94
|
# @!attribute [rw] params
|
102
95
|
# @return [Hash{String => String}]
|
103
|
-
# Additional domain-specific parameters for the predictions, any string must
|
96
|
+
# Required. Additional domain-specific parameters for the predictions, any string must
|
104
97
|
# be up to 25000 characters long.
|
105
98
|
#
|
106
99
|
# * For Text Classification:
|
@@ -125,6 +118,7 @@ module Google
|
|
125
118
|
# requested value may be limited by server.
|
126
119
|
#
|
127
120
|
# * For Video Classification :
|
121
|
+
#
|
128
122
|
# `score_threshold` - (float) A value from 0.0 to 1.0. When the model
|
129
123
|
# makes predictions for a video, it will only produce results that
|
130
124
|
# have at least this confidence score. The default is 0.5.
|
@@ -152,7 +146,14 @@ module Google
|
|
152
146
|
# metrics provided to describe that quality. The default is
|
153
147
|
# "false".
|
154
148
|
#
|
149
|
+
# * For Tables:
|
150
|
+
#
|
151
|
+
# feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
|
152
|
+
# should be populated in the returned TablesAnnotations. The
|
153
|
+
# default is false.
|
154
|
+
#
|
155
155
|
# * For Video Object Tracking:
|
156
|
+
#
|
156
157
|
# `score_threshold` - (float) When Model detects objects on video frames,
|
157
158
|
# it will only produce bounding boxes which have at least this
|
158
159
|
# confidence score. Value in 0 to 1 range, default is 0.5.
|
@@ -166,8 +167,7 @@ module Google
|
|
166
167
|
|
167
168
|
# Result of the Batch Predict. This message is returned in
|
168
169
|
# {Google::Longrunning::Operation#response response} of the operation returned
|
169
|
-
# by the
|
170
|
-
# {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
|
170
|
+
# by the {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
|
171
171
|
# @!attribute [rw] metadata
|
172
172
|
# @return [Hash{String => String}]
|
173
173
|
# Additional domain-specific prediction response metadata.
|
@@ -20,22 +20,22 @@ module Google
|
|
20
20
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::CreateDataset AutoML::CreateDataset}.
|
21
21
|
# @!attribute [rw] parent
|
22
22
|
# @return [String]
|
23
|
-
# The resource name of the project to create the dataset for.
|
23
|
+
# Required. The resource name of the project to create the dataset for.
|
24
24
|
# @!attribute [rw] dataset
|
25
25
|
# @return [Google::Cloud::AutoML::V1beta1::Dataset]
|
26
|
-
# The dataset to create.
|
26
|
+
# Required. The dataset to create.
|
27
27
|
class CreateDatasetRequest; end
|
28
28
|
|
29
29
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetDataset AutoML::GetDataset}.
|
30
30
|
# @!attribute [rw] name
|
31
31
|
# @return [String]
|
32
|
-
# The resource name of the dataset to retrieve.
|
32
|
+
# Required. The resource name of the dataset to retrieve.
|
33
33
|
class GetDatasetRequest; end
|
34
34
|
|
35
35
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListDatasets AutoML::ListDatasets}.
|
36
36
|
# @!attribute [rw] parent
|
37
37
|
# @return [String]
|
38
|
-
# The resource name of the project from which to list datasets.
|
38
|
+
# Required. The resource name of the project from which to list datasets.
|
39
39
|
# @!attribute [rw] filter
|
40
40
|
# @return [String]
|
41
41
|
# An expression for filtering the results of the request.
|
@@ -70,7 +70,7 @@ module Google
|
|
70
70
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UpdateDataset AutoML::UpdateDataset}
|
71
71
|
# @!attribute [rw] dataset
|
72
72
|
# @return [Google::Cloud::AutoML::V1beta1::Dataset]
|
73
|
-
# The dataset which replaces the resource on the server.
|
73
|
+
# Required. The dataset which replaces the resource on the server.
|
74
74
|
# @!attribute [rw] update_mask
|
75
75
|
# @return [Google::Protobuf::FieldMask]
|
76
76
|
# The update mask applies to the resource.
|
@@ -79,7 +79,7 @@ module Google
|
|
79
79
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::DeleteDataset AutoML::DeleteDataset}.
|
80
80
|
# @!attribute [rw] name
|
81
81
|
# @return [String]
|
82
|
-
# The resource name of the dataset to delete.
|
82
|
+
# Required. The resource name of the dataset to delete.
|
83
83
|
class DeleteDatasetRequest; end
|
84
84
|
|
85
85
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ImportData AutoML::ImportData}.
|
@@ -105,13 +105,13 @@ module Google
|
|
105
105
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetAnnotationSpec AutoML::GetAnnotationSpec}.
|
106
106
|
# @!attribute [rw] name
|
107
107
|
# @return [String]
|
108
|
-
# The resource name of the annotation spec to retrieve.
|
108
|
+
# Required. The resource name of the annotation spec to retrieve.
|
109
109
|
class GetAnnotationSpecRequest; end
|
110
110
|
|
111
111
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetTableSpec AutoML::GetTableSpec}.
|
112
112
|
# @!attribute [rw] name
|
113
113
|
# @return [String]
|
114
|
-
# The resource name of the table spec to retrieve.
|
114
|
+
# Required. The resource name of the table spec to retrieve.
|
115
115
|
# @!attribute [rw] field_mask
|
116
116
|
# @return [Google::Protobuf::FieldMask]
|
117
117
|
# Mask specifying which fields to read.
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListTableSpecs AutoML::ListTableSpecs}.
|
121
121
|
# @!attribute [rw] parent
|
122
122
|
# @return [String]
|
123
|
-
# The resource name of the dataset to list table specs from.
|
123
|
+
# Required. The resource name of the dataset to list table specs from.
|
124
124
|
# @!attribute [rw] field_mask
|
125
125
|
# @return [Google::Protobuf::FieldMask]
|
126
126
|
# Mask specifying which fields to read.
|
@@ -152,7 +152,7 @@ module Google
|
|
152
152
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UpdateTableSpec AutoML::UpdateTableSpec}
|
153
153
|
# @!attribute [rw] table_spec
|
154
154
|
# @return [Google::Cloud::AutoML::V1beta1::TableSpec]
|
155
|
-
# The table spec which replaces the resource on the server.
|
155
|
+
# Required. The table spec which replaces the resource on the server.
|
156
156
|
# @!attribute [rw] update_mask
|
157
157
|
# @return [Google::Protobuf::FieldMask]
|
158
158
|
# The update mask applies to the resource.
|
@@ -161,7 +161,7 @@ module Google
|
|
161
161
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetColumnSpec AutoML::GetColumnSpec}.
|
162
162
|
# @!attribute [rw] name
|
163
163
|
# @return [String]
|
164
|
-
# The resource name of the column spec to retrieve.
|
164
|
+
# Required. The resource name of the column spec to retrieve.
|
165
165
|
# @!attribute [rw] field_mask
|
166
166
|
# @return [Google::Protobuf::FieldMask]
|
167
167
|
# Mask specifying which fields to read.
|
@@ -170,7 +170,7 @@ module Google
|
|
170
170
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListColumnSpecs AutoML::ListColumnSpecs}.
|
171
171
|
# @!attribute [rw] parent
|
172
172
|
# @return [String]
|
173
|
-
# The resource name of the table spec to list column specs from.
|
173
|
+
# Required. The resource name of the table spec to list column specs from.
|
174
174
|
# @!attribute [rw] field_mask
|
175
175
|
# @return [Google::Protobuf::FieldMask]
|
176
176
|
# Mask specifying which fields to read.
|
@@ -202,7 +202,7 @@ module Google
|
|
202
202
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UpdateColumnSpec AutoML::UpdateColumnSpec}
|
203
203
|
# @!attribute [rw] column_spec
|
204
204
|
# @return [Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
205
|
-
# The column spec which replaces the resource on the server.
|
205
|
+
# Required. The column spec which replaces the resource on the server.
|
206
206
|
# @!attribute [rw] update_mask
|
207
207
|
# @return [Google::Protobuf::FieldMask]
|
208
208
|
# The update mask applies to the resource.
|
@@ -211,22 +211,22 @@ module Google
|
|
211
211
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::CreateModel AutoML::CreateModel}.
|
212
212
|
# @!attribute [rw] parent
|
213
213
|
# @return [String]
|
214
|
-
# Resource name of the parent project where the model is being created.
|
214
|
+
# Required. Resource name of the parent project where the model is being created.
|
215
215
|
# @!attribute [rw] model
|
216
216
|
# @return [Google::Cloud::AutoML::V1beta1::Model]
|
217
|
-
# The model to create.
|
217
|
+
# Required. The model to create.
|
218
218
|
class CreateModelRequest; end
|
219
219
|
|
220
220
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetModel AutoML::GetModel}.
|
221
221
|
# @!attribute [rw] name
|
222
222
|
# @return [String]
|
223
|
-
# Resource name of the model.
|
223
|
+
# Required. Resource name of the model.
|
224
224
|
class GetModelRequest; end
|
225
225
|
|
226
226
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListModels AutoML::ListModels}.
|
227
227
|
# @!attribute [rw] parent
|
228
228
|
# @return [String]
|
229
|
-
# Resource name of the project, from which to list the models.
|
229
|
+
# Required. Resource name of the project, from which to list the models.
|
230
230
|
# @!attribute [rw] filter
|
231
231
|
# @return [String]
|
232
232
|
# An expression for filtering the results of the request.
|
@@ -262,7 +262,7 @@ module Google
|
|
262
262
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::DeleteModel AutoML::DeleteModel}.
|
263
263
|
# @!attribute [rw] name
|
264
264
|
# @return [String]
|
265
|
-
# Resource name of the model being deleted.
|
265
|
+
# Required. Resource name of the model being deleted.
|
266
266
|
class DeleteModelRequest; end
|
267
267
|
|
268
268
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::DeployModel AutoML::DeployModel}.
|
@@ -274,13 +274,13 @@ module Google
|
|
274
274
|
# Model deployment metadata specific to Image Classification.
|
275
275
|
# @!attribute [rw] name
|
276
276
|
# @return [String]
|
277
|
-
# Resource name of the model to deploy.
|
277
|
+
# Required. Resource name of the model to deploy.
|
278
278
|
class DeployModelRequest; end
|
279
279
|
|
280
280
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UndeployModel AutoML::UndeployModel}.
|
281
281
|
# @!attribute [rw] name
|
282
282
|
# @return [String]
|
283
|
-
# Resource name of the model to undeploy.
|
283
|
+
# Required. Resource name of the model to undeploy.
|
284
284
|
class UndeployModelRequest; end
|
285
285
|
|
286
286
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}.
|
@@ -307,13 +307,13 @@ module Google
|
|
307
307
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetModelEvaluation AutoML::GetModelEvaluation}.
|
308
308
|
# @!attribute [rw] name
|
309
309
|
# @return [String]
|
310
|
-
# Resource name for the model evaluation.
|
310
|
+
# Required. Resource name for the model evaluation.
|
311
311
|
class GetModelEvaluationRequest; end
|
312
312
|
|
313
313
|
# Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListModelEvaluations AutoML::ListModelEvaluations}.
|
314
314
|
# @!attribute [rw] parent
|
315
315
|
# @return [String]
|
316
|
-
# Resource name of the model to list the model evaluations for.
|
316
|
+
# Required. Resource name of the model to list the model evaluations for.
|
317
317
|
# If modelId is set as "-", this will list model evaluations from across all
|
318
318
|
# models of the parent location.
|
319
319
|
# @!attribute [rw] filter
|
@@ -228,6 +228,15 @@ module Google
|
|
228
228
|
#
|
229
229
|
# {Google::Cloud::AutoML::V1beta1::TablesModelColumnInfo#column_display_name column_display_name}
|
230
230
|
# would be populated, then this whole field is not.
|
231
|
+
# @!attribute [rw] baseline_score
|
232
|
+
# @return [Float]
|
233
|
+
# Output only. Stores the prediction score for the baseline example, which
|
234
|
+
# is defined as the example with all values set to their baseline values.
|
235
|
+
# This is used as part of the Sampled Shapley explanation of the model's
|
236
|
+
# prediction. This field is populated only when feature importance is
|
237
|
+
# requested. For regression models, this holds the baseline prediction for
|
238
|
+
# the baseline example. For classification models, this holds the baseline
|
239
|
+
# prediction for the baseline example for the argmax class.
|
231
240
|
class TablesAnnotation; end
|
232
241
|
|
233
242
|
# An information specific to given column and Tables Model, in context
|
@@ -38,11 +38,12 @@ module Google
|
|
38
38
|
# Dataset metadata for text sentiment.
|
39
39
|
# @!attribute [rw] sentiment_max
|
40
40
|
# @return [Integer]
|
41
|
-
# Required. A sentiment is expressed as an integer ordinal, where higher
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
41
|
+
# Required. A sentiment is expressed as an integer ordinal, where higher value
|
42
|
+
# means a more positive sentiment. The range of sentiments that will be used
|
43
|
+
# is between 0 and sentiment_max (inclusive on both ends), and all the values
|
44
|
+
# in the range must be represented in the dataset before a model can be
|
45
|
+
# created.
|
46
|
+
# sentiment_max value must be between 1 and 10 (inclusive).
|
46
47
|
class TextSentimentDatasetMetadata; end
|
47
48
|
|
48
49
|
# Model metadata that is specific to text sentiment.
|
@@ -4,10 +4,11 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/
|
7
|
+
require 'google/api/resource_pb'
|
8
8
|
require 'google/cloud/automl/v1beta1/annotation_spec_pb'
|
9
9
|
require 'google/cloud/automl/v1beta1/classification_pb'
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_message "google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata" do
|
13
14
|
optional :classification_type, :enum, 1, "google.cloud.automl.v1beta1.ClassificationType"
|
@@ -4,10 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/automl/v1beta1/io_pb'
|
8
|
+
require 'google/cloud/automl/v1beta1/model_pb'
|
9
|
+
require 'google/cloud/automl/v1beta1/model_evaluation_pb'
|
10
|
+
require 'google/protobuf/empty_pb'
|
9
11
|
require 'google/protobuf/timestamp_pb'
|
10
12
|
require 'google/rpc/status_pb'
|
13
|
+
require 'google/api/annotations_pb'
|
11
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
15
|
add_message "google.cloud.automl.v1beta1.OperationMetadata" do
|
13
16
|
optional :progress_percent, :int32, 13
|
@@ -248,7 +248,7 @@ module Google
|
|
248
248
|
# encoded.
|
249
249
|
#
|
250
250
|
# @param name [String]
|
251
|
-
# Name of the model requested to serve the prediction.
|
251
|
+
# Required. Name of the model requested to serve the prediction.
|
252
252
|
# @param payload [Google::Cloud::AutoML::V1beta1::ExamplePayload | Hash]
|
253
253
|
# Required. Payload to perform a prediction on. The payload must match the
|
254
254
|
# problem type that the model was trained to solve.
|
@@ -272,13 +272,9 @@ module Google
|
|
272
272
|
# boxes will be returned in the response. Default is 100, the
|
273
273
|
# requested value may be limited by server.
|
274
274
|
# * For Tables:
|
275
|
-
#
|
276
|
-
#
|
277
|
-
#
|
278
|
-
# should be populated in the returned
|
279
|
-
#
|
280
|
-
# [TablesAnnotation(-s)][[google.cloud.automl.v1beta1.TablesAnnotation].
|
281
|
-
# The default is false.
|
275
|
+
# feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
|
276
|
+
# should be populated in the returned TablesAnnotation.
|
277
|
+
# The default is false.
|
282
278
|
# @param options [Google::Gax::CallOptions]
|
283
279
|
# Overrides the default settings for this call, e.g, timeout,
|
284
280
|
# retries, etc.
|
@@ -312,14 +308,12 @@ module Google
|
|
312
308
|
@predict.call(req, options, &block)
|
313
309
|
end
|
314
310
|
|
315
|
-
# Perform a batch prediction. Unlike the online
|
316
|
-
# {Google::Cloud::AutoML::V1beta1::PredictionService::Predict Predict}, batch
|
311
|
+
# Perform a batch prediction. Unlike the online {Google::Cloud::AutoML::V1beta1::PredictionService::Predict Predict}, batch
|
317
312
|
# prediction result won't be immediately available in the response. Instead,
|
318
313
|
# a long running operation object is returned. User can poll the operation
|
319
314
|
# result via {Google::Longrunning::Operations::GetOperation GetOperation}
|
320
|
-
# method. Once the operation is done,
|
321
|
-
# {Google::
|
322
|
-
# returned in the {Google::Longrunning::Operation#response response} field.
|
315
|
+
# method. Once the operation is done, {Google::Cloud::AutoML::V1beta1::BatchPredictResult BatchPredictResult} is returned in
|
316
|
+
# the {Google::Longrunning::Operation#response response} field.
|
323
317
|
# Available for following ML problems:
|
324
318
|
# * Image Classification
|
325
319
|
# * Image Object Detection
|
@@ -328,7 +322,7 @@ module Google
|
|
328
322
|
# * Tables
|
329
323
|
#
|
330
324
|
# @param name [String]
|
331
|
-
# Name of the model requested to serve the batch prediction.
|
325
|
+
# Required. Name of the model requested to serve the batch prediction.
|
332
326
|
# @param input_config [Google::Cloud::AutoML::V1beta1::BatchPredictInputConfig | Hash]
|
333
327
|
# Required. The input configuration for batch prediction.
|
334
328
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::BatchPredictInputConfig`
|
@@ -339,7 +333,7 @@ module Google
|
|
339
333
|
# A hash of the same form as `Google::Cloud::AutoML::V1beta1::BatchPredictOutputConfig`
|
340
334
|
# can also be provided.
|
341
335
|
# @param params [Hash{String => String}]
|
342
|
-
# Additional domain-specific parameters for the predictions, any string must
|
336
|
+
# Required. Additional domain-specific parameters for the predictions, any string must
|
343
337
|
# be up to 25000 characters long.
|
344
338
|
#
|
345
339
|
# * For Text Classification:
|
@@ -364,6 +358,7 @@ module Google
|
|
364
358
|
# requested value may be limited by server.
|
365
359
|
#
|
366
360
|
# * For Video Classification :
|
361
|
+
#
|
367
362
|
# `score_threshold` - (float) A value from 0.0 to 1.0. When the model
|
368
363
|
# makes predictions for a video, it will only produce results that
|
369
364
|
# have at least this confidence score. The default is 0.5.
|
@@ -391,7 +386,14 @@ module Google
|
|
391
386
|
# metrics provided to describe that quality. The default is
|
392
387
|
# "false".
|
393
388
|
#
|
389
|
+
# * For Tables:
|
390
|
+
#
|
391
|
+
# feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
|
392
|
+
# should be populated in the returned TablesAnnotations. The
|
393
|
+
# default is false.
|
394
|
+
#
|
394
395
|
# * For Video Object Tracking:
|
396
|
+
#
|
395
397
|
# `score_threshold` - (float) When Model detects objects on video frames,
|
396
398
|
# it will only produce bounding boxes which have at least this
|
397
399
|
# confidence score. Value in 0 to 1 range, default is 0.5.
|
@@ -6,6 +6,8 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
9
11
|
require 'google/cloud/automl/v1beta1/annotation_payload_pb'
|
10
12
|
require 'google/cloud/automl/v1beta1/data_items_pb'
|
11
13
|
require 'google/cloud/automl/v1beta1/io_pb'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/automl/v1beta1/prediction_service.proto for package 'Google::Cloud::AutoML::V1beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2020 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
|
21
20
|
require 'grpc'
|
@@ -55,14 +54,12 @@ module Google::Cloud::AutoML::V1beta1
|
|
55
54
|
# * Text Sentiment - TextSnippet, content up 500 characters, UTF-8
|
56
55
|
# encoded.
|
57
56
|
rpc :Predict, PredictRequest, PredictResponse
|
58
|
-
# Perform a batch prediction. Unlike the online
|
59
|
-
# [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
|
57
|
+
# Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
|
60
58
|
# prediction result won't be immediately available in the response. Instead,
|
61
59
|
# a long running operation object is returned. User can poll the operation
|
62
60
|
# result via [GetOperation][google.longrunning.Operations.GetOperation]
|
63
|
-
# method. Once the operation is done,
|
64
|
-
# [
|
65
|
-
# returned in the [response][google.longrunning.Operation.response] field.
|
61
|
+
# method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in
|
62
|
+
# the [response][google.longrunning.Operation.response] field.
|
66
63
|
# Available for following ML problems:
|
67
64
|
# * Image Classification
|
68
65
|
# * Image Object Detection
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/cloud/automl/v1beta1/annotation_payload_pb'
|
9
12
|
require 'google/cloud/automl/v1beta1/annotation_spec_pb'
|
10
13
|
require 'google/cloud/automl/v1beta1/column_spec_pb'
|
@@ -17,7 +20,6 @@ require 'google/cloud/automl/v1beta1/operations_pb'
|
|
17
20
|
require 'google/cloud/automl/v1beta1/table_spec_pb'
|
18
21
|
require 'google/longrunning/operations_pb'
|
19
22
|
require 'google/protobuf/field_mask_pb'
|
20
|
-
require 'google/api/client_pb'
|
21
23
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
22
24
|
add_message "google.cloud.automl.v1beta1.CreateDatasetRequest" do
|
23
25
|
optional :parent, :string, 1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/automl/v1beta1/service.proto for package 'Google::Cloud::AutoML::V1beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2020 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
|
21
20
|
require 'grpc'
|
@@ -110,7 +109,8 @@ module Google::Cloud::AutoML::V1beta1
|
|
110
109
|
# [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number])
|
111
110
|
# will reset the deployment state without pausing the model's availability.
|
112
111
|
#
|
113
|
-
# Only applicable for Text Classification, Image Object Detection and
|
112
|
+
# Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage
|
113
|
+
# deployment automatically.
|
114
114
|
#
|
115
115
|
# Returns an empty response in the
|
116
116
|
# [response][google.longrunning.Operation.response] field when it completes.
|
@@ -4,15 +4,16 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/automl/v1beta1/classification_pb'
|
9
8
|
require 'google/cloud/automl/v1beta1/column_spec_pb'
|
10
9
|
require 'google/cloud/automl/v1beta1/data_items_pb'
|
11
10
|
require 'google/cloud/automl/v1beta1/data_stats_pb'
|
12
11
|
require 'google/cloud/automl/v1beta1/ranges_pb'
|
12
|
+
require 'google/cloud/automl/v1beta1/regression_pb'
|
13
13
|
require 'google/cloud/automl/v1beta1/temporal_pb'
|
14
14
|
require 'google/protobuf/struct_pb'
|
15
15
|
require 'google/protobuf/timestamp_pb'
|
16
|
+
require 'google/api/annotations_pb'
|
16
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
18
|
add_message "google.cloud.automl.v1beta1.TablesDatasetMetadata" do
|
18
19
|
optional :primary_table_spec_id, :string, 1
|
@@ -40,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
41
|
optional :prediction_interval, :message, 4, "google.cloud.automl.v1beta1.DoubleRange"
|
41
42
|
optional :value, :message, 2, "google.protobuf.Value"
|
42
43
|
repeated :tables_model_column_info, :message, 3, "google.cloud.automl.v1beta1.TablesModelColumnInfo"
|
44
|
+
optional :baseline_score, :float, 5
|
43
45
|
end
|
44
46
|
add_message "google.cloud.automl.v1beta1.TablesModelColumnInfo" do
|
45
47
|
optional :column_spec_name, :string, 1
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/automl/v1beta1/classification_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.automl.v1beta1.TextClassificationDatasetMetadata" do
|
11
11
|
optional :classification_type, :enum, 1, "google.cloud.automl.v1beta1.ClassificationType"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-automl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|