id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
google_protobuf/comgooglecloudvertex_113_0.txt | ServerStreamingPredict | |
google_protobuf/comgooglecloudvertex_525_0.txt | public final ServerStreamingCallable<StreamRawPredictRequest,HttpBody> streamRawPredictCallable() | |
google_protobuf/604925_81_0.txt | Solved
 | |
google_protobuf/comgooglecloudvertex_221_0.txt | **Parameter**
---
**Name** | **Description**
` settings ` | ` [ PredictionServiceSettings ](/java/docs/reference/google-
cloud-vertexai/latest/com.google.cloud.vertexai.api.PredictionServiceSettings)
` | |
google_protobuf/comgooglecloudvertex_447_0.txt | Perform an online prediction with an arbitrary HTTP payload. | |
google_protobuf/604925_114_0.txt | 0 Likes | |
google_protobuf/comgooglecloudvertex_452_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_184_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_174_0.txt | Callable method variants take no parameters and return an immutable API
callable object, which can be used to initiate calls to the service. | |
google_protobuf/google_protobuf_17_3.txt | Source ](../../_sources/google/protobuf/message.rst.txt)
©2008, Google LLC. | Powered by [ Sphinx 2.3.1 ](http://sphinx-doc.org/) & [ Alabaster 0.7.12 ](https://github.com/bitprophet/alabaster) | [ Page source ](../../_sources/google/protobuf/message.rst.txt)
| |
google_protobuf/tabular_42_0.txt | Timestamp
If you are in a live tutorial session, you might be using a shared test account or project. To avoid name collisions between users on resources created, create a timestamp for each instance session, then append it to the name of resources you create in this tutorial. | |
google_protobuf/comgooglecloudvertex_138_0.txt | * generateContentCallable() | |
google_protobuf/comgooglecloudvertex_49_0.txt | * [ AI solutions, generative AI, and ML ](/docs/ai-ml)
* [ Application development ](/docs/application-development)
* [ Application hosting ](/docs/application-hosting)
* [ Compute ](/docs/compute-area)
* [ Data analytics and pipelines ](/docs/data)
* [ Databases ](/docs/databases)
* [ Distributed, hybrid, and mu... | |
google_protobuf/tabular_33_0.txt | If you are running this notebook locally, you must install the Cloud SDK. | |
google_protobuf/PredictionServiceCli_135_0.txt | You can specify the schema for each instance in the
[predict_schemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]
field when you create a [Model][google.cloud.aiplatform.v1.Model]. This schema
applies when you deploy the `Model` as a `DeployedModel` to an
[Endpoint][google.cloud... | |
google_protobuf/tabular_25_0.txt | if not os.getenv("IS_TESTING"):
# Automatically restart kernel after installs
import IPython | |
google_protobuf/604925_72_0.txt | private PredictResponse predict(String endpointId, String query, String project, String location) throws IOException {
try (PredictionServiceClient serviceClient = getPredictionServiceClient()) {
EndpointName endpointName = EndpointName.of(project, location, endpointId);
ListValue.Builder listValue = ListValue.newBuild... | |
google_protobuf/comgooglecloudvertex_169_0.txt | TestIamPermissions | |
google_protobuf/tabular_115_0.txt |
!rm -r -f $LOCAL_DIRECTORY_FULL/estimator | |
google_protobuf/tabular_194_0.txt |
tf27_gpu_deployed_model_dict = {
"model": tf27_gpu_model,
"display_name": "Criteo Kaggle TF2.7 GPU deployed model",
"dedicated_resources": {
"min_replica_count": 1,
"max_replica_count": 1,
"machine_spec": {
"machine_type": DEPLOY_COMPUTE,
"accelerator_type": DEPLOY_GPU,
"accelerator_count": 1,
},
},
} | |
google_protobuf/tabular_86_0.txt | # Precalculated, see
# https://github.com/vlasenkoalexey/criteo_nbdev/blob/master/04_data_reader.ipynb
NUM_AVERAGE = {
"int1": 3.5024133170753995,
"int2": 105.8484197976657,
"int3": 26.91304102061112,
"int4": 7.322680248873331,
"int5": 18538.99166487135,
"int6": 116.06185085211605,
"int7": 16.333130032135013,
"int8": 1... | |
google_protobuf/604925_51_0.txt | 
* [ AutomaticResourcesOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.AutomaticResourcesOrBuilder)
* [ AutoscalingMetricSpecOrBuilder ](/java/do... | |
google_protobuf/comgooglecloudvertex_505_0.txt | public void shutdownNow() | |
google_protobuf/comgooglecloudvertex_72_0.txt | * predictCallable() | |
google_protobuf/tabular_117_0.txt | serving_input_fn = tf.estimator.export.build_raw_serving_input_receiver_fn(spec_dict)
estimator_base_path = os.path.join(LOCAL_DIRECTORY_FULL, "estimator")
estimator_path = estimator.export_saved_model(estimator_base_path, serving_input_fn)
estimator_path = estimator_path.decode("ascii")
estimator_path | |
google_protobuf/tabular_6_0.txt | Download and unpack Criteo Kaggle dataset
Build and train a model using the Keras API
Setup private endpoints
Deploy a model to Vertex AI Prediction using TensorFlow 2.7 container
Deploy a model to Vertex AI Prediction using optimized TensorFlow container
Benchmark both models and validate their predictions
You can tra... | |
google_protobuf/google_protobuf_18_0.txt | # google.protobuf.text_format ¶
Contains routines for printing protocol messages in text format.
Simple usage example:
# Create a proto object and serialize it to a text proto string.
message = my_proto_pb2.MyMessage(foo='bar')
text_proto = text_format.MessageToString(message)
# Pars... | |
google_protobuf/PredictionServiceCli_72_0.txt | * #### create | |
google_protobuf/tabular_76_0.txt | HIDDEN_LAYERS = list(map(lambda x: int(x), HIDDEN_LAYERS_STR.split(",")))
LOCAL_DIRECTORY_FULL = os.path.expanduser(LOCAL_DIRECTORY) | |
google_protobuf/tabular_43_0.txt |
from datetime import datetime | |
google_protobuf/tabular_134_0.txt |
!mkdir -p $LOCAL_DIRECTORY_FULL/keras/assets.extra | |
google_protobuf/604925_188_0.txt | | 3 | |
google_protobuf/tabular_106_0.txt |
model.evaluate(read_gcs(batch_size=256).skip(1000).take(1000)) | |
google_protobuf/tabular_110_0.txt |
!saved_model_cli show --dir $LOCAL_DIRECTORY_FULL/keras --all | |
google_protobuf/google_protobuf_9_1.txt | protobuf.duration_pb2 ](duration_pb2.html)
* [ google.protobuf.empty_pb2 ](empty_pb2.html)
* [ google.protobuf.field_mask_pb2 ](field_mask_pb2.html)
* [ google.protobuf.internal.containers ](internal/containers.html)
* [ google.protobuf.json_format ](json_format.html)
* [ google.protobuf.message ](message.htm... | |
google_protobuf/comgooglecloudvertex_568_0.txt | * [ About Google ](//about.google/)
* [ Privacy ](//policies.google.com/privacy)
* [ Site terms ](//www.google.com/intl/en/policies/terms/regional.html)
* [ Google Cloud terms ](/product-terms/)
* Manage cookies
* [ Our third decade of climate action: join us ](/sustainability)
* Sign up for the Google Cloud newsletter... | |
google_protobuf/comgooglecloudvertex_227_0.txt | public boolean awaitTermination(long duration, TimeUnit unit) | |
google_protobuf/comgooglecloudvertex_293_0.txt | ` instances ` | ` [ List
](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) < [ Value
](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html)
> ` | |
google_protobuf/comgooglecloudvertex_530_0.txt | ### streamingPredictCallable() | |
google_protobuf/tabular_49_0.txt | Click Create service account. | |
google_protobuf/comgooglecloudvertex_392_0.txt | ### predict(EndpointName endpoint, List<Value> instances, Value parameters) | |
google_protobuf/comgooglecloudvertex_79_0.txt | * rawPredict(RawPredictRequest request) | |
google_protobuf/PredictionServiceCli_142_0.txt | Sample code: | |
google_protobuf/comgooglecloudvertex_437_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/PredictionServiceCli_120_0.txt |
Parameters: | |
google_protobuf/tabular_100_0.txt | feature_layer = tf.keras.layers.DenseFeatures(feature_columns, name="feature_layer")
Dense = tf.keras.layers.Dense
Dropout = tf.keras.layers.Dropout
BatchNormalization = tf.keras.layers.BatchNormalization
dense_layers = []
for c in HIDDEN_LAYERS:
dense_layers.append(BatchNormalization())
dense_layers.append(Dense(c, ac... | |
google_protobuf/comgooglecloudvertex_435_0.txt | * ` X-Vertex-AI-Deployed-Model-Id ` : ID of the Endpoint's DeployedModel that served this prediction. | |
google_protobuf/comgooglecloudvertex_368_0.txt | **Returns**
---
**Type** | **Description**
` [ boolean
](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) `
| | |
google_protobuf/604925_109_0.txt | * Mark as New
* Bookmark
* Subscribe
* Mute
* * [ Subscribe to RSS Feed ](https://www.googlecloudcommunity.com/rss/message?board.id=cloud-ai-ml&message.id=2198)
* * [ Permalink ](/gc/AI-ML/Vertex-AI-Getting-a-GRPC-Exception-when-sending-a-prediction/m-p/604925/highlight/true#M2198)
* [ Print ](/gc/forums/forumtopic... | |
google_protobuf/604925_130_0.txt |  | |
google_protobuf/PredictionServiceCli_104_0.txt | Sample code: | |
google_protobuf/tabular_170_0.txt | artifact_uri argument should point to a GCS path where saved_model.pb file is located for your model. | |
google_protobuf/comgooglecloudvertex_259_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_523_0.txt |
**Returns**
---
**Type** | **Description**
` [ ServerStreamingCallable
](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.ServerStreamingCallable.html)
< [ GenerateContentRequest ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.GenerateContentRequest) , ... | |
google_protobuf/comgooglecloudvertex_254_0.txt | **Returns**
---
**Type** | **Description**
` [ DirectRawPredictResponse ](/java/docs/reference/google-cloud-
vertexai/latest/com.google.cloud.vertexai.api.DirectRawPredictResponse) ` | | |
google_protobuf/google_protobuf_19_0.txt | # google.protobuf.service ¶
DEPRECATED: Declares the RPC service interfaces.
This module declares the abstract interfaces underlying proto2 RPC services.
These are intended to be independent of any particular RPC implementation, so
that proto2 services can be used on top of a variety of implementations.
Starting wi... | |
google_protobuf/google_protobuf_23_11.txt | ENERATE_EQUALS_AND_HASH_FIELD_NUMBER ` _= 20_ ¶
` JAVA_GENERIC_SERVICES_FIELD_NUMBER ` _= 17_ ¶
` JAVA_MULTIPLE_FILES_FIELD_NUMBER ` _= 10_ ¶
` JAVA_OUTER_CLASSNAME_FIELD_NUMBER ` _= 8_ ¶
` JAVA_PACKAGE_FIELD_NUMBER ` _= 1_ ¶
` JAVA_STRING_CHECK_UTF8_FIELD_NUMBER ` _= 27_ ¶
` L... | |
google_protobuf/comgooglecloudvertex_137_0.txt | Callable method variants take no parameters and return an immutable API
callable object, which can be used to initiate calls to the service. | |
google_protobuf/comgooglecloudvertex_492_0.txt |
**Parameter**
---
**Name** | **Description**
` request ` | ` com.google.iam.v1.SetIamPolicyRequest ` | |
google_protobuf/tabular_192_0.txt |
tf27_cpu_deployed_model_dict = {
"model": tf27_cpu_model,
"display_name": "Criteo Kaggle TF2.7 CPU deployed model",
"dedicated_resources": {
"min_replica_count": 1,
"max_replica_count": 1,
"machine_spec": {
"machine_type": DEPLOY_COMPUTE,
"accelerator_count": 0,
},
},
} | |
google_protobuf/PredictionServiceCli_11_0.txt | * All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource, [ AutoCloseable ](https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true "class or interface in java.lang") | |
google_protobuf/comgooglecloudvertex_18_0.txt | * [ ad-manager ](/java/docs/reference/ad-manager/latest/overview)
* [ alloydb-connector ](/java/docs/reference/alloydb-jdbc-connector/latest/overview)
* [ api-common ](/java/docs/reference/api-common/latest/overview)
* [ gax ](/java/docs/reference/gax/latest/overview)
* [ google-analytics-admin ](/java/docs/refere... | |
google_protobuf/comgooglecloudvertex_193_0.txt | [ Object.finalize()
](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) | |
google_protobuf/comgooglecloudvertex_424_0.txt | ### predictCallable() | |
google_protobuf/604925_104_0.txt | Bronze 3 | |
google_protobuf/tabular_142_0.txt | Import the Vertex AI Python client library into your notebook environment. | |
google_protobuf/comgooglecloudvertex_36_0.txt | * [ Schema ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.Schema)
* [ Schema.Builder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.Schema.Builder)
* [ Segment ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.Segme... | |
google_protobuf/comgooglecloudvertex_301_0.txt | public final UnaryCallable<ExplainRequest,ExplainResponse> explainCallable() | |
google_protobuf/comgooglecloudvertex_448_0.txt | The response includes the following HTTP headers: | |
google_protobuf/comgooglecloudvertex_442_0.txt | A DeployedModel may have an upper limit on the number of instances it
supports per request. When this limit it is exceeded for an AutoML model, the
RawPredict method returns an error. When this limit is exceeded for a custom-
trained model, the behavior varies depending on the model. | |
google_protobuf/comgooglecloudvertex_378_0.txt | The request object containing all of the parameters for the API call. | |
google_protobuf/tabular_95_0.txt |
def create_feature_columns():
linear_feature_columns = []
categorical_feature_columns = [] | |
google_protobuf/comgooglecloudvertex_474_0.txt | The response includes the following HTTP headers: | |
google_protobuf/comgooglecloudvertex_326_0.txt | ### generateContentCallable() | |
google_protobuf/tabular_79_0.txt |
!mkdir -p $LOCAL_DIRECTORY_FULL/data | |
google_protobuf/tabular_197_0.txt | tf_opt_gpu_deployed_model = endpoint_service_client.deploy_model(
endpoint=tf_opt_gpu_endpoint, deployed_model=tf_opt_gpu_deployed_model_dict
).result()
tf_opt_gpu_deployed_model | |
google_protobuf/tabular_15_0.txt | To install Jupyter, run pip3 install jupyter on the command-line in a terminal shell. | |
google_protobuf/comgooglecloudvertex_556_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/604925_24_0.txt | * [ Learning Forums ](/gc/Learning-Forums/bd-p/cloud-learning-certification) | |
google_protobuf/comgooglecloudvertex_252_0.txt |
**Parameter**
---
**Name** | **Description**
` request ` | ` [ DirectRawPredictRequest ](/java/docs/reference/google-
cloud-vertexai/latest/com.google.cloud.vertexai.api.DirectRawPredictRequest) ` | |
google_protobuf/comgooglecloudvertex_327_0.txt | public final UnaryCallable<GenerateContentRequest,GenerateContentResponse> generateContentCallable() | |
google_protobuf/comgooglecloudvertex_454_0.txt | The request object containing all of the parameters for the API call. | |
google_protobuf/604925_39_0.txt | Showing results for | |
google_protobuf/604925_28_0.txt | * [ News & Announcements ](/gc/News-Announcements/bd-p/cloud-announcements) | |
google_protobuf/tabular_13_0.txt | Install Python 3. | |
google_protobuf/comgooglecloudvertex_197_0.txt | [ Object.notifyAll()
](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) | |
google_protobuf/comgooglecloudvertex_29_0.txt | * [ ExplanationMetadataOverride.InputMetadataOverrideOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ExplanationMetadataOverride.InputMetadataOverrideOrBuilder)
* [ ExplanationMetadataOverrideOrBuilder ](/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.ver... | |
google_protobuf/comgooglecloudvertex_103_0.txt | Callable method variants take no parameters and return an immutable API
callable object, which can be used to initiate calls to the service. | |
google_protobuf/comgooglecloudvertex_22_0.txt | * [ Overview ](/java/docs/reference/google-cloud-vertexai/latest/overview)
* [ Version history ](/java/docs/reference/google-cloud-vertexai/latest/history)
* com.google.cloud.vertexai | |
google_protobuf/comgooglecloudvertex_69_0.txt | * predict(EndpointName endpoint, List<Value> instances, Value parameters) | |
google_protobuf/tabular_159_0.txt | For simplicity, you setup VPC peering to the default network. You can create a different network for your project. | |
google_protobuf/604925_169_0.txt | 0 Likes | |
google_protobuf/PredictionServiceCli_163_0.txt | Perform an online explanation. | |
google_protobuf/tabular_205_0.txt | This code sends a specified number of requests asynchronously and uniformly at a given QPS, then records the observed latency. Next, the latency results are aggregated and percentiles are calculated. The actual_qps that the model can handle is calculated as the time it takes for a model to process the sent requests div... | |
google_protobuf/604925_106_0.txt | * Mark as New
* Bookmark
* Subscribe
* Mute
* * [ Subscribe to RSS Feed ](https://www.googlecloudcommunity.com/rss/message?board.id=cloud-ai-ml&message.id=2198)
* * [ Permalink ](/gc/AI-ML/Vertex-AI-Getting-a-GRPC-Exception-when-sending-a-prediction/m-p/604925/highlight/true#M2198)
* [ Print ](/gc/forums/forumtopic... | |
google_protobuf/comgooglecloudvertex_319_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_330_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... | |
google_protobuf/comgooglecloudvertex_416_0.txt | // This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://clo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.