google-cloud-ai_platform-v1 0.18.0 → 0.20.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/ai_platform/v1/dataset_service/client.rb +36 -46
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +20 -22
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +6 -6
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +176 -68
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +24 -26
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +16 -18
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +777 -60
- data/lib/google/cloud/ai_platform/v1/job_service/credentials.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +40 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +52 -62
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +8 -10
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +254 -42
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +16 -20
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +16 -18
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +50 -60
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +17 -21
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +12 -14
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +46 -0
- data/lib/google/cloud/aiplatform/v1/job_service_services_pb.rb +26 -0
- data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +5 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +31 -0
- data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +12 -2
- data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +123 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +25 -0
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/study_pb.rb +6 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +8 -2
- data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +128 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +10 -3
- data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +166 -0
- data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +31 -11
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +83 -0
- data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +306 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +39 -0
- data/proto_docs/google/cloud/aiplatform/v1/study.rb +22 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +19 -11
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
|
|
7
7
|
require 'google/api/client_pb'
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/aiplatform/v1/operation_pb'
|
10
11
|
require 'google/cloud/aiplatform/v1/pipeline_job_pb'
|
11
12
|
require 'google/cloud/aiplatform/v1/training_pipeline_pb'
|
12
13
|
require 'google/longrunning/operations_pb'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/aiplatform/v1/service_networking.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/aiplatform/v1/service_networking.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.aiplatform.v1.PrivateServiceConnectConfig" do
|
11
|
+
optional :enable_private_service_connect, :bool, 1
|
12
|
+
repeated :project_allowlist, :string, 2
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module AIPlatform
|
20
|
+
module V1
|
21
|
+
PrivateServiceConnectConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PrivateServiceConnectConfig").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
|
|
10
10
|
require 'google/cloud/aiplatform/v1/operation_pb'
|
11
11
|
require 'google/cloud/aiplatform/v1/specialist_pool_pb'
|
12
12
|
require 'google/longrunning/operations_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
14
15
|
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -66,6 +66,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
66
66
|
add_message "google.cloud.aiplatform.v1.StudySpec.MetricSpec" do
|
67
67
|
optional :metric_id, :string, 1
|
68
68
|
optional :goal, :enum, 2, "google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType"
|
69
|
+
proto3_optional :safety_config, :message, 3, "google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig"
|
70
|
+
end
|
71
|
+
add_message "google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig" do
|
72
|
+
optional :safety_threshold, :double, 1
|
73
|
+
proto3_optional :desired_min_safe_trials_fraction, :double, 2
|
69
74
|
end
|
70
75
|
add_enum "google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType" do
|
71
76
|
value :GOAL_TYPE_UNSPECIFIED, 0
|
@@ -176,6 +181,7 @@ module Google
|
|
176
181
|
Trial::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Trial.State").enummodule
|
177
182
|
StudySpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StudySpec").msgclass
|
178
183
|
StudySpec::MetricSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StudySpec.MetricSpec").msgclass
|
184
|
+
StudySpec::MetricSpec::SafetyMetricConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig").msgclass
|
179
185
|
StudySpec::MetricSpec::GoalType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType").enummodule
|
180
186
|
StudySpec::ParameterSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StudySpec.ParameterSpec").msgclass
|
181
187
|
StudySpec::ParameterSpec::DoubleValueSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec").msgclass
|
@@ -14,6 +14,7 @@ require 'google/cloud/aiplatform/v1/tensorboard_experiment_pb'
|
|
14
14
|
require 'google/cloud/aiplatform/v1/tensorboard_run_pb'
|
15
15
|
require 'google/cloud/aiplatform/v1/tensorboard_time_series_pb'
|
16
16
|
require 'google/longrunning/operations_pb'
|
17
|
+
require 'google/protobuf/empty_pb'
|
17
18
|
require 'google/protobuf/field_mask_pb'
|
18
19
|
|
19
20
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -71,7 +71,7 @@ module Google
|
|
71
71
|
# Checks whether a Trial should stop or not. Returns a
|
72
72
|
# long-running operation. When the operation is successful,
|
73
73
|
# it will contain a
|
74
|
-
# [CheckTrialEarlyStoppingStateResponse][google.cloud.
|
74
|
+
# [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse].
|
75
75
|
rpc :CheckTrialEarlyStoppingState, ::Google::Cloud::AIPlatform::V1::CheckTrialEarlyStoppingStateRequest, ::Google::Longrunning::Operation
|
76
76
|
# Stops a Trial.
|
77
77
|
rpc :StopTrial, ::Google::Cloud::AIPlatform::V1::StopTrialRequest, ::Google::Cloud::AIPlatform::V1::Trial
|
@@ -22,6 +22,7 @@ module Google
|
|
22
22
|
module AIPlatform
|
23
23
|
module V1
|
24
24
|
# Represents a hardware accelerator type.
|
25
|
+
# NEXT ID: 11.
|
25
26
|
module AcceleratorType
|
26
27
|
# Unspecified accelerator type, which means no accelerator.
|
27
28
|
ACCELERATOR_TYPE_UNSPECIFIED = 0
|
@@ -49,6 +50,9 @@ module Google
|
|
49
50
|
|
50
51
|
# TPU v3.
|
51
52
|
TPU_V3 = 7
|
53
|
+
|
54
|
+
# TPU v4.
|
55
|
+
TPU_V4_POD = 10
|
52
56
|
end
|
53
57
|
end
|
54
58
|
end
|
@@ -42,7 +42,11 @@ module Google
|
|
42
42
|
# Exactly one of model and unmanaged_container_model must be set.
|
43
43
|
#
|
44
44
|
# The model resource name may contain version id or version alias to specify
|
45
|
-
# the version
|
45
|
+
# the version.
|
46
|
+
# Example: `projects/{project}/locations/{location}/models/{model}@2`
|
47
|
+
# or
|
48
|
+
# `projects/{project}/locations/{location}/models/{model}@golden`
|
49
|
+
# if no version is specified, the default version will be deployed.
|
46
50
|
# @!attribute [r] model_version_id
|
47
51
|
# @return [::String]
|
48
52
|
# Output only. The version ID of the Model that produces the predictions via
|
@@ -197,6 +201,15 @@ module Google
|
|
197
201
|
# Customer-managed encryption key options for a BatchPredictionJob. If this
|
198
202
|
# is set, then all resources created by the BatchPredictionJob will be
|
199
203
|
# encrypted with the provided encryption key.
|
204
|
+
# @!attribute [rw] disable_container_logging
|
205
|
+
# @return [::Boolean]
|
206
|
+
# For custom-trained Models and AutoML Tabular Models, the container of the
|
207
|
+
# DeployedModel instances will send `stderr` and `stdout` streams to
|
208
|
+
# Stackdriver Logging by default. Please note that the logs incur cost,
|
209
|
+
# which are subject to [Cloud Logging
|
210
|
+
# pricing](https://cloud.google.com/stackdriver/pricing).
|
211
|
+
#
|
212
|
+
# User can disable container logging by setting this flag to true.
|
200
213
|
class BatchPredictionJob
|
201
214
|
include ::Google::Protobuf::MessageExts
|
202
215
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -177,6 +177,9 @@ module Google
|
|
177
177
|
# which are named with the corresponding annotations' schema title. Inside
|
178
178
|
# these sub directories, a schema.yaml will be created to describe the
|
179
179
|
# output format.
|
180
|
+
# @!attribute [rw] fraction_split
|
181
|
+
# @return [::Google::Cloud::AIPlatform::V1::ExportFractionSplit]
|
182
|
+
# Split based on fractions defining the size of each set.
|
180
183
|
# @!attribute [rw] annotations_filter
|
181
184
|
# @return [::String]
|
182
185
|
# A filter on Annotations of the Dataset. Only Annotations on to-be-exported
|
@@ -187,6 +190,26 @@ module Google
|
|
187
190
|
include ::Google::Protobuf::MessageExts
|
188
191
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
189
192
|
end
|
193
|
+
|
194
|
+
# Assigns the input data to training, validation, and test sets as per the
|
195
|
+
# given fractions. Any of `training_fraction`, `validation_fraction` and
|
196
|
+
# `test_fraction` may optionally be provided, they must sum to up to 1. If the
|
197
|
+
# provided ones sum to less than 1, the remainder is assigned to sets as
|
198
|
+
# decided by Vertex AI. If none of the fractions are set, by default roughly
|
199
|
+
# 80% of data is used for training, 10% for validation, and 10% for test.
|
200
|
+
# @!attribute [rw] training_fraction
|
201
|
+
# @return [::Float]
|
202
|
+
# The fraction of the input data that is to be used to train the Model.
|
203
|
+
# @!attribute [rw] validation_fraction
|
204
|
+
# @return [::Float]
|
205
|
+
# The fraction of the input data that is to be used to validate the Model.
|
206
|
+
# @!attribute [rw] test_fraction
|
207
|
+
# @return [::Float]
|
208
|
+
# The fraction of the input data that is to be used to evaluate the Model.
|
209
|
+
class ExportFractionSplit
|
210
|
+
include ::Google::Protobuf::MessageExts
|
211
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
212
|
+
end
|
190
213
|
end
|
191
214
|
end
|
192
215
|
end
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
# this key.
|
79
79
|
# @!attribute [rw] network
|
80
80
|
# @return [::String]
|
81
|
-
# The full name of the Google Compute Engine
|
81
|
+
# Optional. The full name of the Google Compute Engine
|
82
82
|
# [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks)
|
83
83
|
# to which the Endpoint should be peered.
|
84
84
|
#
|
@@ -156,7 +156,11 @@ module Google
|
|
156
156
|
# Endpoint.
|
157
157
|
#
|
158
158
|
# The resource name may contain version id or version alias to specify the
|
159
|
-
# version
|
159
|
+
# version.
|
160
|
+
# Example: `projects/{project}/locations/{location}/models/{model}@2`
|
161
|
+
# or
|
162
|
+
# `projects/{project}/locations/{location}/models/{model}@golden`
|
163
|
+
# if no version is specified, the default version will be deployed.
|
160
164
|
# @!attribute [r] model_version_id
|
161
165
|
# @return [::String]
|
162
166
|
# Output only. The version ID of the model that is deployed.
|
@@ -206,6 +210,8 @@ module Google
|
|
206
210
|
# User can disable container logging by setting this flag to true.
|
207
211
|
# @!attribute [rw] enable_access_logging
|
208
212
|
# @return [::Boolean]
|
213
|
+
# If true, online prediction access logs are sent to StackDriver
|
214
|
+
# Logging.
|
209
215
|
# These logs are like standard server access logs, containing
|
210
216
|
# information like timestamp and latency for each prediction request.
|
211
217
|
#
|
@@ -0,0 +1,190 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AIPlatform
|
23
|
+
module V1
|
24
|
+
# True positive, false positive, or false negative.
|
25
|
+
#
|
26
|
+
# EvaluatedAnnotation is only available under ModelEvaluationSlice with slice
|
27
|
+
# of `annotationSpec` dimension.
|
28
|
+
# @!attribute [r] type
|
29
|
+
# @return [::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation::EvaluatedAnnotationType]
|
30
|
+
# Output only. Type of the EvaluatedAnnotation.
|
31
|
+
# @!attribute [r] predictions
|
32
|
+
# @return [::Array<::Google::Protobuf::Value>]
|
33
|
+
# Output only. The model predicted annotations.
|
34
|
+
#
|
35
|
+
# For true positive, there is one and only one prediction, which matches the
|
36
|
+
# only one ground truth annotation in
|
37
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#ground_truths ground_truths}.
|
38
|
+
#
|
39
|
+
# For false positive, there is one and only one prediction, which doesn't
|
40
|
+
# match any ground truth annotation of the corresponding
|
41
|
+
# [data_item_view_id][EvaluatedAnnotation.data_item_view_id].
|
42
|
+
#
|
43
|
+
# For false negative, there are zero or more predictions which are similar to
|
44
|
+
# the only ground truth annotation in
|
45
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#ground_truths ground_truths}
|
46
|
+
# but not enough for a match.
|
47
|
+
#
|
48
|
+
# The schema of the prediction is stored in
|
49
|
+
# {::Google::Cloud::AIPlatform::V1::ModelEvaluation#annotation_schema_uri ModelEvaluation.annotation_schema_uri}
|
50
|
+
# @!attribute [r] ground_truths
|
51
|
+
# @return [::Array<::Google::Protobuf::Value>]
|
52
|
+
# Output only. The ground truth Annotations, i.e. the Annotations that exist
|
53
|
+
# in the test data the Model is evaluated on.
|
54
|
+
#
|
55
|
+
# For true positive, there is one and only one ground truth annotation, which
|
56
|
+
# matches the only prediction in
|
57
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions}.
|
58
|
+
#
|
59
|
+
# For false positive, there are zero or more ground truth annotations that
|
60
|
+
# are similar to the only prediction in
|
61
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions},
|
62
|
+
# but not enough for a match.
|
63
|
+
#
|
64
|
+
# For false negative, there is one and only one ground truth annotation,
|
65
|
+
# which doesn't match any predictions created by the model.
|
66
|
+
#
|
67
|
+
# The schema of the ground truth is stored in
|
68
|
+
# {::Google::Cloud::AIPlatform::V1::ModelEvaluation#annotation_schema_uri ModelEvaluation.annotation_schema_uri}
|
69
|
+
# @!attribute [r] data_item_payload
|
70
|
+
# @return [::Google::Protobuf::Value]
|
71
|
+
# Output only. The data item payload that the Model predicted this
|
72
|
+
# EvaluatedAnnotation on.
|
73
|
+
# @!attribute [r] evaluated_data_item_view_id
|
74
|
+
# @return [::String]
|
75
|
+
# Output only. ID of the EvaluatedDataItemView under the same ancestor
|
76
|
+
# ModelEvaluation. The EvaluatedDataItemView consists of all ground truths
|
77
|
+
# and predictions on
|
78
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#data_item_payload data_item_payload}.
|
79
|
+
#
|
80
|
+
# Can be passed in
|
81
|
+
# [GetEvaluatedDataItemView's][ModelService.GetEvaluatedDataItemView][]
|
82
|
+
# [id][GetEvaluatedDataItemViewRequest.id].
|
83
|
+
# @!attribute [rw] explanations
|
84
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::EvaluatedAnnotationExplanation>]
|
85
|
+
# Explanations of
|
86
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions}.
|
87
|
+
# Each element of the explanations indicates the explanation for one
|
88
|
+
# explanation Method.
|
89
|
+
#
|
90
|
+
# The attributions list in the
|
91
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotationExplanation#explanation EvaluatedAnnotationExplanation.explanation}
|
92
|
+
# object corresponds to the
|
93
|
+
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#predictions predictions}
|
94
|
+
# list. For example, the second element in the attributions list explains the
|
95
|
+
# second element in the predictions list.
|
96
|
+
# @!attribute [rw] error_analysis_annotations
|
97
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation>]
|
98
|
+
# Annotations of model error analysis results.
|
99
|
+
class EvaluatedAnnotation
|
100
|
+
include ::Google::Protobuf::MessageExts
|
101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
102
|
+
|
103
|
+
# Describes the type of the EvaluatedAnnotation. The type is determined
|
104
|
+
module EvaluatedAnnotationType
|
105
|
+
# Invalid value.
|
106
|
+
EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0
|
107
|
+
|
108
|
+
# The EvaluatedAnnotation is a true positive. It has a prediction created
|
109
|
+
# by the Model and a ground truth Annotation which the prediction matches.
|
110
|
+
TRUE_POSITIVE = 1
|
111
|
+
|
112
|
+
# The EvaluatedAnnotation is false positive. It has a prediction created by
|
113
|
+
# the Model which does not match any ground truth annotation.
|
114
|
+
FALSE_POSITIVE = 2
|
115
|
+
|
116
|
+
# The EvaluatedAnnotation is false negative. It has a ground truth
|
117
|
+
# annotation which is not matched by any of the model created predictions.
|
118
|
+
FALSE_NEGATIVE = 3
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# Explanation result of the prediction produced by the Model.
|
123
|
+
# @!attribute [rw] explanation_type
|
124
|
+
# @return [::String]
|
125
|
+
# Explanation type.
|
126
|
+
#
|
127
|
+
# For AutoML Image Classification models, possible values are:
|
128
|
+
#
|
129
|
+
# * `image-integrated-gradients`
|
130
|
+
# * `image-xrai`
|
131
|
+
# @!attribute [rw] explanation
|
132
|
+
# @return [::Google::Cloud::AIPlatform::V1::Explanation]
|
133
|
+
# Explanation attribution response details.
|
134
|
+
class EvaluatedAnnotationExplanation
|
135
|
+
include ::Google::Protobuf::MessageExts
|
136
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
137
|
+
end
|
138
|
+
|
139
|
+
# Model error analysis for each annotation.
|
140
|
+
# @!attribute [rw] attributed_items
|
141
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation::AttributedItem>]
|
142
|
+
# Attributed items for a given annotation, typically representing neighbors
|
143
|
+
# from the training sets constrained by the query type.
|
144
|
+
# @!attribute [rw] query_type
|
145
|
+
# @return [::Google::Cloud::AIPlatform::V1::ErrorAnalysisAnnotation::QueryType]
|
146
|
+
# The query type used for finding the attributed items.
|
147
|
+
# @!attribute [rw] outlier_score
|
148
|
+
# @return [::Float]
|
149
|
+
# The outlier score of this annotated item. Usually defined as the min of all
|
150
|
+
# distances from attributed items.
|
151
|
+
# @!attribute [rw] outlier_threshold
|
152
|
+
# @return [::Float]
|
153
|
+
# The threshold used to determine if this annotation is an outlier or not.
|
154
|
+
class ErrorAnalysisAnnotation
|
155
|
+
include ::Google::Protobuf::MessageExts
|
156
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
157
|
+
|
158
|
+
# Attributed items for a given annotation, typically representing neighbors
|
159
|
+
# from the training sets constrained by the query type.
|
160
|
+
# @!attribute [rw] annotation_resource_name
|
161
|
+
# @return [::String]
|
162
|
+
# The unique ID for each annotation. Used by FE to allocate the annotation
|
163
|
+
# in DB.
|
164
|
+
# @!attribute [rw] distance
|
165
|
+
# @return [::Float]
|
166
|
+
# The distance of this item to the annotation.
|
167
|
+
class AttributedItem
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
|
172
|
+
# The query type used for finding the attributed items.
|
173
|
+
module QueryType
|
174
|
+
# Unspecified query type for model error analysis.
|
175
|
+
QUERY_TYPE_UNSPECIFIED = 0
|
176
|
+
|
177
|
+
# Query similar samples across all classes in the dataset.
|
178
|
+
ALL_SIMILAR = 1
|
179
|
+
|
180
|
+
# Query similar samples from the same class of the input sample.
|
181
|
+
SAME_CLASS_SIMILAR = 2
|
182
|
+
|
183
|
+
# Query dissimilar samples from the same class of the input sample.
|
184
|
+
SAME_CLASS_DISSIMILAR = 3
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
@@ -97,6 +97,15 @@ module Google
|
|
97
97
|
# @return [::Integer]
|
98
98
|
# The maximum number of nodes to scale up to. Must be greater than
|
99
99
|
# min_node_count, and less than or equal to 10 times of 'min_node_count'.
|
100
|
+
# @!attribute [rw] cpu_utilization_target
|
101
|
+
# @return [::Integer]
|
102
|
+
# Optional. The cpu utilization that the Autoscaler should be trying to
|
103
|
+
# achieve. This number is on a scale from 0 (no utilization) to 100
|
104
|
+
# (total utilization), and is limited between 10 and 80. When a cluster's
|
105
|
+
# CPU utilization exceeds the target that you have set, Bigtable
|
106
|
+
# immediately adds nodes to the cluster. When CPU utilization is
|
107
|
+
# substantially lower than the target, Bigtable removes nodes. If not set
|
108
|
+
# or set to 0, default to 50.
|
100
109
|
class Scaling
|
101
110
|
include ::Google::Protobuf::MessageExts
|
102
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -67,12 +67,6 @@ module Google
|
|
67
67
|
# @return [::Integer]
|
68
68
|
# Configuration of the snapshot analysis based monitoring pipeline
|
69
69
|
# running interval. The value indicates number of days.
|
70
|
-
# If both
|
71
|
-
# {::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::SnapshotAnalysis#monitoring_interval_days FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days}
|
72
|
-
# and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][]
|
73
|
-
# are set when creating/updating EntityTypes/Features,
|
74
|
-
# {::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::SnapshotAnalysis#monitoring_interval_days FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days}
|
75
|
-
# will be used.
|
76
70
|
# @!attribute [rw] staleness_days
|
77
71
|
# @return [::Integer]
|
78
72
|
# Customized export features time window for snapshot analysis. Unit is one
|
@@ -85,7 +79,9 @@ module Google
|
|
85
79
|
|
86
80
|
# Configuration of the Featurestore's ImportFeature Analysis Based
|
87
81
|
# Monitoring. This type of analysis generates statistics for values of each
|
88
|
-
# Feature imported by every
|
82
|
+
# Feature imported by every
|
83
|
+
# {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#import_feature_values ImportFeatureValues}
|
84
|
+
# operation.
|
89
85
|
# @!attribute [rw] state
|
90
86
|
# @return [::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::ImportFeaturesAnalysis::State]
|
91
87
|
# Whether to enable / disable / inherite default hebavior for import
|
@@ -123,7 +119,9 @@ module Google
|
|
123
119
|
end
|
124
120
|
|
125
121
|
# Defines the baseline to do anomaly detection for feature values imported
|
126
|
-
# by each
|
122
|
+
# by each
|
123
|
+
# {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#import_feature_values ImportFeatureValues}
|
124
|
+
# operation.
|
127
125
|
module Baseline
|
128
126
|
# Should not be used.
|
129
127
|
BASELINE_UNSPECIFIED = 0
|
@@ -1009,6 +1009,15 @@ module Google
|
|
1009
1009
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1010
1010
|
end
|
1011
1011
|
|
1012
|
+
# Details of operations that delete Feature values.
|
1013
|
+
# @!attribute [rw] generic_metadata
|
1014
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
1015
|
+
# Operation metadata for Featurestore delete Features values.
|
1016
|
+
class DeleteFeatureValuesOperationMetadata
|
1017
|
+
include ::Google::Protobuf::MessageExts
|
1018
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1019
|
+
end
|
1020
|
+
|
1012
1021
|
# Details of operations that perform create EntityType.
|
1013
1022
|
# @!attribute [rw] generic_metadata
|
1014
1023
|
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
@@ -1035,6 +1044,125 @@ module Google
|
|
1035
1044
|
include ::Google::Protobuf::MessageExts
|
1036
1045
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1037
1046
|
end
|
1047
|
+
|
1048
|
+
# Request message for
|
1049
|
+
# {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#delete_feature_values FeaturestoreService.DeleteFeatureValues}.
|
1050
|
+
# @!attribute [rw] select_entity
|
1051
|
+
# @return [::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest::SelectEntity]
|
1052
|
+
# Select feature values to be deleted by specifying entities.
|
1053
|
+
# @!attribute [rw] select_time_range_and_feature
|
1054
|
+
# @return [::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest::SelectTimeRangeAndFeature]
|
1055
|
+
# Select feature values to be deleted by specifying time range and
|
1056
|
+
# features.
|
1057
|
+
# @!attribute [rw] entity_type
|
1058
|
+
# @return [::String]
|
1059
|
+
# Required. The resource name of the EntityType grouping the Features for
|
1060
|
+
# which values are being deleted from. Format:
|
1061
|
+
# `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
|
1062
|
+
class DeleteFeatureValuesRequest
|
1063
|
+
include ::Google::Protobuf::MessageExts
|
1064
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1065
|
+
|
1066
|
+
# Message to select entity.
|
1067
|
+
# If an entity id is selected, all the feature values corresponding to the
|
1068
|
+
# entity id will be deleted, including the entityId.
|
1069
|
+
# @!attribute [rw] entity_id_selector
|
1070
|
+
# @return [::Google::Cloud::AIPlatform::V1::EntityIdSelector]
|
1071
|
+
# Required. Selectors choosing feature values of which entity id to be
|
1072
|
+
# deleted from the EntityType.
|
1073
|
+
class SelectEntity
|
1074
|
+
include ::Google::Protobuf::MessageExts
|
1075
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# Message to select time range and feature.
|
1079
|
+
# Values of the selected feature generated within an inclusive time range
|
1080
|
+
# will be deleted. Using this option permanently deletes the feature values
|
1081
|
+
# from the specified feature IDs within the specified time range.
|
1082
|
+
# This might include data from the online storage. If you want to retain
|
1083
|
+
# any deleted historical data in the online storage, you must re-ingest it.
|
1084
|
+
# @!attribute [rw] time_range
|
1085
|
+
# @return [::Google::Type::Interval]
|
1086
|
+
# Required. Select feature generated within a half-inclusive time range.
|
1087
|
+
# The time range is lower inclusive and upper exclusive.
|
1088
|
+
# @!attribute [rw] feature_selector
|
1089
|
+
# @return [::Google::Cloud::AIPlatform::V1::FeatureSelector]
|
1090
|
+
# Required. Selectors choosing which feature values to be deleted from the
|
1091
|
+
# EntityType.
|
1092
|
+
# @!attribute [rw] skip_online_storage_delete
|
1093
|
+
# @return [::Boolean]
|
1094
|
+
# If set, data will not be deleted from online storage.
|
1095
|
+
# When time range is older than the data in online storage, setting this to
|
1096
|
+
# be true will make the deletion have no impact on online serving.
|
1097
|
+
class SelectTimeRangeAndFeature
|
1098
|
+
include ::Google::Protobuf::MessageExts
|
1099
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Response message for
|
1104
|
+
# {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#delete_feature_values FeaturestoreService.DeleteFeatureValues}.
|
1105
|
+
# @!attribute [rw] select_entity
|
1106
|
+
# @return [::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesResponse::SelectEntity]
|
1107
|
+
# Response for request specifying the entities to delete
|
1108
|
+
# @!attribute [rw] select_time_range_and_feature
|
1109
|
+
# @return [::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesResponse::SelectTimeRangeAndFeature]
|
1110
|
+
# Response for request specifying time range and feature
|
1111
|
+
class DeleteFeatureValuesResponse
|
1112
|
+
include ::Google::Protobuf::MessageExts
|
1113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1114
|
+
|
1115
|
+
# Response message if the request uses the SelectEntity option.
|
1116
|
+
# @!attribute [rw] offline_storage_deleted_entity_row_count
|
1117
|
+
# @return [::Integer]
|
1118
|
+
# The count of deleted entity rows in the offline storage.
|
1119
|
+
# Each row corresponds to the combination of an entity ID and a timestamp.
|
1120
|
+
# One entity ID can have multiple rows in the offline storage.
|
1121
|
+
# @!attribute [rw] online_storage_deleted_entity_count
|
1122
|
+
# @return [::Integer]
|
1123
|
+
# The count of deleted entities in the online storage.
|
1124
|
+
# Each entity ID corresponds to one entity.
|
1125
|
+
class SelectEntity
|
1126
|
+
include ::Google::Protobuf::MessageExts
|
1127
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# Response message if the request uses the SelectTimeRangeAndFeature option.
|
1131
|
+
# @!attribute [rw] impacted_feature_count
|
1132
|
+
# @return [::Integer]
|
1133
|
+
# The count of the features or columns impacted.
|
1134
|
+
# This is the same as the feature count in the request.
|
1135
|
+
# @!attribute [rw] offline_storage_modified_entity_row_count
|
1136
|
+
# @return [::Integer]
|
1137
|
+
# The count of modified entity rows in the offline storage.
|
1138
|
+
# Each row corresponds to the combination of an entity ID and a timestamp.
|
1139
|
+
# One entity ID can have multiple rows in the offline storage.
|
1140
|
+
# Within each row, only the features specified in the request are
|
1141
|
+
# deleted.
|
1142
|
+
# @!attribute [rw] online_storage_modified_entity_count
|
1143
|
+
# @return [::Integer]
|
1144
|
+
# The count of modified entities in the online storage.
|
1145
|
+
# Each entity ID corresponds to one entity.
|
1146
|
+
# Within each entity, only the features specified in the request are
|
1147
|
+
# deleted.
|
1148
|
+
class SelectTimeRangeAndFeature
|
1149
|
+
include ::Google::Protobuf::MessageExts
|
1150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1151
|
+
end
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
# Selector for entityId. Getting ids from the given source.
|
1155
|
+
# @!attribute [rw] csv_source
|
1156
|
+
# @return [::Google::Cloud::AIPlatform::V1::CsvSource]
|
1157
|
+
# Source of Csv
|
1158
|
+
# @!attribute [rw] entity_id_field
|
1159
|
+
# @return [::String]
|
1160
|
+
# Source column that holds entity IDs. If not provided, entity IDs are
|
1161
|
+
# extracted from the column named `entity_id`.
|
1162
|
+
class EntityIdSelector
|
1163
|
+
include ::Google::Protobuf::MessageExts
|
1164
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1165
|
+
end
|
1038
1166
|
end
|
1039
1167
|
end
|
1040
1168
|
end
|
@@ -69,7 +69,7 @@ module Google
|
|
69
69
|
# unspecified, the Endpoint is not peered with any network.
|
70
70
|
#
|
71
71
|
# {::Google::Cloud::AIPlatform::V1::IndexEndpoint#network network} and
|
72
|
-
#
|
72
|
+
# {::Google::Cloud::AIPlatform::V1::IndexEndpoint#private_service_connect_config private_service_connect_config}
|
73
73
|
# are mutually exclusive.
|
74
74
|
#
|
75
75
|
# [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
|
@@ -85,6 +85,13 @@ module Google
|
|
85
85
|
# {::Google::Cloud::AIPlatform::V1::IndexEndpoint#network network} or
|
86
86
|
# {::Google::Cloud::AIPlatform::V1::IndexEndpoint#enable_private_service_connect enable_private_service_connect},
|
87
87
|
# can be set.
|
88
|
+
# @!attribute [rw] private_service_connect_config
|
89
|
+
# @return [::Google::Cloud::AIPlatform::V1::PrivateServiceConnectConfig]
|
90
|
+
# Optional. Configuration for private service connect.
|
91
|
+
#
|
92
|
+
# {::Google::Cloud::AIPlatform::V1::IndexEndpoint#network network} and
|
93
|
+
# {::Google::Cloud::AIPlatform::V1::IndexEndpoint#private_service_connect_config private_service_connect_config}
|
94
|
+
# are mutually exclusive.
|
88
95
|
class IndexEndpoint
|
89
96
|
include ::Google::Protobuf::MessageExts
|
90
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -164,10 +171,10 @@ module Google
|
|
164
171
|
# e2-standard-16 and all machine types available for LARGE shard.
|
165
172
|
#
|
166
173
|
# Available machine types for LARGE shard:
|
167
|
-
# e2-
|
174
|
+
# e2-highmem-16, n2d-standard-32.
|
168
175
|
#
|
169
176
|
# n1-standard-16 and n1-standard-32 are still available, but we recommend
|
170
|
-
# e2-standard-16 and e2-
|
177
|
+
# e2-standard-16 and e2-highmem-16 for cost efficiency.
|
171
178
|
# @!attribute [rw] enable_access_logging
|
172
179
|
# @return [::Boolean]
|
173
180
|
# Optional. If true, private endpoint's access logs are sent to StackDriver
|