Skip to content

Commit bf9f73f

Browse files
authored
Merge branch 'main' into feat--Made-display_name-optional-for-most-calls
2 parents ae8adcb + 153578f commit bf9f73f

File tree

72 files changed

+4213
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+4213
-710
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
3-
digest: sha256:0e18b9475fbeb12d9ad4302283171edebb6baf2dfca1bd215ee3b34ed79d95d7
3+
digest: sha256:36a95b8f494e4674dc9eee9af98961293b51b86b3649942aac800ae6c1f796d4

.repo-metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"product_documentation": "https://cloud.google.com/ai-platform",
55
"client_documentation": "https://cloud.google.com/python/docs/reference/aiplatform/latest",
66
"issue_tracker": "https://issuetracker.google.com/savedsearches/559744",
7-
"release_level": "ga",
7+
"release_level": "stable",
88
"language": "python",
99
"library_type": "GAPIC_COMBO",
1010
"repo": "googleapis/python-aiplatform",
1111
"distribution_name": "google-cloud-aiplatform",
12-
"api_id": "aiplatform.googleapis.com"
12+
"api_id": "aiplatform.googleapis.com",
13+
"api_shortname": "aiplatform"
1314
}

.sample_configs/process_configs.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ predict_image_classification_sample:
266266
instance_dict: predict.instance.ImageClassificationPredictionInstance
267267
parameters_dict: predict.params.ImageClassificationPredictionParams
268268
comments:
269-
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/classification.yaml
269+
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/image_classification_1.0.0.yaml
270270
for the format of the predictions.
271271
predict_image_file_sample:
272272
max_depth: 1
@@ -278,7 +278,7 @@ predict_image_object_detection_sample:
278278
instance_dict: predict.instance.ImageObjectDetectionPredictionInstance
279279
parameters_dict: predict.params.ImageObjectDetectionPredictionParams
280280
comments:
281-
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/image_object_detection.yaml
281+
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/image_object_detection_1.0.0.yaml
282282
for the format of the predictions.
283283
predict_sample:
284284
max_depth: 1
@@ -290,38 +290,35 @@ predict_tabular_classification_sample:
290290
max_depth: 1
291291
resource_name: endpoint
292292
comments:
293-
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tables_classification.yaml
293+
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tabular_classification_1.0.0.yaml
294294
for the format of the predictions.
295295
predict_tabular_forecasting_sample: {}
296296
predict_tabular_regression_sample:
297297
max_depth: 1
298298
resource_name: endpoint
299299
comments:
300-
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tables_regression.yaml
300+
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tabular_regression_1.0.0.yaml
301301
for the format of the predictions.
302302
predict_text_classification_single_label_sample:
303303
max_depth: 1
304304
resource_name: endpoint
305305
schema_types:
306306
instance_dict: predict.instance.TextClassificationPredictionInstance
307-
comments:
308-
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_classification.yaml
309-
for the format of the predictions.
310307
predict_text_entity_extraction_sample:
311308
max_depth: 1
312309
resource_name: endpoint
313310
schema_types:
314311
instance_dict: predict.instance.TextExtractionPredictionInstance
315312
comments:
316-
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_extraction.yaml
313+
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_extraction_1.0.0.yaml
317314
for the format of the predictions.
318315
predict_text_sentiment_analysis_sample:
319316
max_depth: 1
320317
resource_name: endpoint
321318
schema_types:
322319
instance_dict: predict.instance.TextSentimentPredictionInstance
323320
comments:
324-
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_sentiment.yaml
321+
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_sentiment_1.0.0.yaml
325322
for the format of the predictions.
326323
search_migratable_resources_sample: {}
327324
undeploy_model_sample:

CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,72 @@
11
# Changelog
22

3+
## [1.9.0](https://www.github.com/googleapis/python-aiplatform/compare/v1.8.1...v1.9.0) (2021-12-29)
4+
5+
6+
### Features
7+
8+
* add create in Featurestore, EntityType, Feature; add create_entity_type in Featurestore; add create_feature, batch_create_features in EntityType; add ingest_from_* for bq and gcs in EntityType; add and update delete with force delete nested resources ([#872](https://www.github.com/googleapis/python-aiplatform/issues/872)) ([ba11c3d](https://www.github.com/googleapis/python-aiplatform/commit/ba11c3d3cd8d3869e2deb3207a8698fa7ce284ec))
9+
* Add LIT methods for Pandas DataFrame and TensorFlow saved model. ([#874](https://www.github.com/googleapis/python-aiplatform/issues/874)) ([03cf301](https://www.github.com/googleapis/python-aiplatform/commit/03cf301989a5802b122803eac7a2d03f2d1769fb))
10+
* Add support to create TensorboardExperiment ([#909](https://www.github.com/googleapis/python-aiplatform/issues/909)) ([96ce738](https://www.github.com/googleapis/python-aiplatform/commit/96ce7387ac58e0ec7cb6a7f6d6a6e422eae5da96))
11+
* Add support to create TensorboardRun ([#912](https://www.github.com/googleapis/python-aiplatform/issues/912)) ([8df74a2](https://www.github.com/googleapis/python-aiplatform/commit/8df74a29df0adb95fff5500fcc9d7a025012ab5e))
12+
13+
14+
### Bug Fixes
15+
16+
* Fix timestamp proto util to default to timestamp at call time. ([#933](https://www.github.com/googleapis/python-aiplatform/issues/933)) ([d72a254](https://www.github.com/googleapis/python-aiplatform/commit/d72a254e97cf74f3fdd55a32a4af86737243593a))
17+
* Improve handling of undeploying model without redistributing remaining traffic ([#898](https://www.github.com/googleapis/python-aiplatform/issues/898)) ([8a8a4fa](https://www.github.com/googleapis/python-aiplatform/commit/8a8a4faa667bde2a4df04afa23a6dd5b1856f958))
18+
* issues/192254729 ([#914](https://www.github.com/googleapis/python-aiplatform/issues/914)) ([3ec620c](https://www.github.com/googleapis/python-aiplatform/commit/3ec620c64bd60ceb5b89918200e11e3fbff67370))
19+
* issues/192254729 ([#915](https://www.github.com/googleapis/python-aiplatform/issues/915)) ([0f22ff6](https://www.github.com/googleapis/python-aiplatform/commit/0f22ff61460a3f2bd55d2c10c4ee06e582f03944))
20+
* use open_in_new_tab in the render method. ([#926](https://www.github.com/googleapis/python-aiplatform/issues/926)) ([04618e0](https://www.github.com/googleapis/python-aiplatform/commit/04618e0563b8588eec2ccd8342c6085ca08b5adb))
21+
22+
### [1.8.1](https://www.github.com/googleapis/python-aiplatform/compare/v1.8.0...v1.8.1) (2021-12-14)
23+
24+
25+
### Bug Fixes
26+
27+
* add clarity to param model_name ([#888](https://www.github.com/googleapis/python-aiplatform/issues/888)) ([1d81783](https://www.github.com/googleapis/python-aiplatform/commit/1d81783b2f914dd7606ee884ca31c1a594e5135f))
28+
* add clarity to parameters per user feedback ([#886](https://www.github.com/googleapis/python-aiplatform/issues/886)) ([37ee0a1](https://www.github.com/googleapis/python-aiplatform/commit/37ee0a1dc6e0105e19aca18f44995a352bfc40cb))
29+
* add param for multi-label per user's feedback ([#887](https://www.github.com/googleapis/python-aiplatform/issues/887)) ([fda942f](https://www.github.com/googleapis/python-aiplatform/commit/fda942ffbe009077b47f36aad1c29603a451e38b))
30+
* add support for API base path overriding ([#908](https://www.github.com/googleapis/python-aiplatform/issues/908)) ([45c4086](https://www.github.com/googleapis/python-aiplatform/commit/45c4086dd07dd7d3d3b7417196ff61a7107d8a1a))
31+
* Important the correct constants and use v1 for tensorboard experiments ([#905](https://www.github.com/googleapis/python-aiplatform/issues/905)) ([48c2bf1](https://www.github.com/googleapis/python-aiplatform/commit/48c2bf1ea2fa42afea1b5d419527bfb8e49e0ac0))
32+
* incorrect uri for IOD yaml ([#889](https://www.github.com/googleapis/python-aiplatform/issues/889)) ([e108ef8](https://www.github.com/googleapis/python-aiplatform/commit/e108ef8250c77c8a8edeccb6b601cbe0b0380c89))
33+
* Minor docstring and snippet fixes ([#873](https://www.github.com/googleapis/python-aiplatform/issues/873)) ([578e06d](https://www.github.com/googleapis/python-aiplatform/commit/578e06df481c3d60074a7b8e9365f8361b04e32b))
34+
35+
36+
### Documentation
37+
38+
* Update references to containers and notebook samples. ([#890](https://www.github.com/googleapis/python-aiplatform/issues/890)) ([67fa1f1](https://www.github.com/googleapis/python-aiplatform/commit/67fa1f179af66686339d797e5b368e96816ed1c5))
39+
* Updated docstrings with exception error classes ([#894](https://www.github.com/googleapis/python-aiplatform/issues/894)) ([f9aecd2](https://www.github.com/googleapis/python-aiplatform/commit/f9aecd22fe08a97e45187b4d11c755ac3b9dfadd))
40+
41+
## [1.8.0](https://www.github.com/googleapis/python-aiplatform/compare/v1.7.1...v1.8.0) (2021-12-03)
42+
43+
44+
### Features
45+
46+
* Add cloud profiler to training_utils ([6d5c7c4](https://www.github.com/googleapis/python-aiplatform/commit/6d5c7c42d1c352f161e4738c6dbbf540a032017b))
47+
* add enable_private_service_connect field to Endpoint feat: add id field to DeployedModel feat: add service_attachment field to PrivateEndpoints feat: add endpoint_id to CreateEndpointRequest and method signature to CreateEndpoint feat: add method... ([#878](https://www.github.com/googleapis/python-aiplatform/issues/878)) ([ca813be](https://www.github.com/googleapis/python-aiplatform/commit/ca813be08ec2620380b5a12b0d6cdc079e27ba79))
48+
* add enable_private_service_connect field to Endpoint feat: add id field to DeployedModel feat: add service_attachment field to PrivateEndpoints feat: add endpoint_id to CreateEndpointRequest and method signature to CreateEndpoint feat: add method... ([#879](https://www.github.com/googleapis/python-aiplatform/issues/879)) ([47e93b2](https://www.github.com/googleapis/python-aiplatform/commit/47e93b20843f30805b73cd6db214c8743f8bfc97))
49+
* add featurestore module including Featurestore, EntityType, and Feature classes; add get, update, delete, list methods in all featurestore classes; add search method in Feature class ([#850](https://www.github.com/googleapis/python-aiplatform/issues/850)) ([66745a6](https://www.github.com/googleapis/python-aiplatform/commit/66745a6ce13fb8b32dd7fbf3eb86e71bd291869b))
50+
* Add prediction container URI builder method ([#805](https://www.github.com/googleapis/python-aiplatform/issues/805)) ([91dd3c0](https://www.github.com/googleapis/python-aiplatform/commit/91dd3c0d5de72fac5b1dc8a9bc23d6cb431061a4))
51+
* default to custom job display name if experiment name looks like a custom job ID ([#833](https://www.github.com/googleapis/python-aiplatform/issues/833)) ([8b9376e](https://www.github.com/googleapis/python-aiplatform/commit/8b9376e9c961a751799f5b80d1b19917c8c353f8))
52+
* Support uploading local models ([#779](https://www.github.com/googleapis/python-aiplatform/issues/779)) ([bffbd9d](https://www.github.com/googleapis/python-aiplatform/commit/bffbd9d359edb099e661736a0c77269bb3a0c746))
53+
* Tensorboard v1 protos release ([#847](https://www.github.com/googleapis/python-aiplatform/issues/847)) ([e0fc3d9](https://www.github.com/googleapis/python-aiplatform/commit/e0fc3d9e4e8a7911f21671ea49818c5f84798d12))
54+
* updating Tensorboard related code to use v1 ([#851](https://www.github.com/googleapis/python-aiplatform/issues/851)) ([b613b26](https://www.github.com/googleapis/python-aiplatform/commit/b613b264524aaab2cb65e63a5487770736faa7c8))
55+
* Upgrade Tensorboard from v1beta1 to v1 ([#849](https://www.github.com/googleapis/python-aiplatform/issues/849)) ([c40ec85](https://www.github.com/googleapis/python-aiplatform/commit/c40ec85e1fca2bee6813f52712d063f96264ec2c))
56+
57+
58+
### Bug Fixes
59+
60+
* Import error for cloud_profiler ([#869](https://www.github.com/googleapis/python-aiplatform/issues/869)) ([0f124e9](https://www.github.com/googleapis/python-aiplatform/commit/0f124e93a1ddead16c0018970f34e45c73d5ed81))
61+
* Support multiple instances in custom predict sample ([#857](https://www.github.com/googleapis/python-aiplatform/issues/857)) ([8cb4839](https://www.github.com/googleapis/python-aiplatform/commit/8cb483918bdbaeae34935eef2b3cd997c1ae89a3))
62+
63+
64+
### Documentation
65+
66+
* Added comment for evaluation_id to python examples ([#860](https://www.github.com/googleapis/python-aiplatform/issues/860)) ([004bf5f](https://www.github.com/googleapis/python-aiplatform/commit/004bf5fa4cb2d66e36de7ec52dee8e2c8dd438ee))
67+
* Reverted IDs in model_service snippets test ([#871](https://www.github.com/googleapis/python-aiplatform/issues/871)) ([da747b5](https://www.github.com/googleapis/python-aiplatform/commit/da747b5ffca3c12b8d64bc80bfe93da5afde0d43))
68+
* Update name of BQ source parameter in samples ([#859](https://www.github.com/googleapis/python-aiplatform/issues/859)) ([f11b598](https://www.github.com/googleapis/python-aiplatform/commit/f11b598f9069f77e86631ada53941876aea010bc))
69+
370
### [1.7.1](https://www.github.com/googleapis/python-aiplatform/compare/v1.7.0...v1.7.1) (2021-11-16)
471

572

README.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Vertex SDK for Python
1+
Vertex AI SDK for Python
22
=================================================
33

44
|GA| |pypi| |versions| |unit-tests| |system-tests| |sample-tests|
@@ -78,9 +78,9 @@ Windows
7878
7979
Overview
8080
~~~~~~~~
81-
This section provides a brief overview of the Vertex SDK for Python. You can also reference the notebooks in `vertex-ai-samples`_ for examples.
81+
This section provides a brief overview of the Vertex AI SDK for Python. You can also reference the notebooks in `vertex-ai-samples`_ for examples.
8282

83-
.. _vertex-ai-samples: https://github.com/GoogleCloudPlatform/ai-platform-samples/tree/master/ai-platform-unified/notebooks/unofficial/sdk
83+
.. _vertex-ai-samples: https://github.com/GoogleCloudPlatform/vertex-ai-samples/tree/main/notebooks/community/sdk
8484

8585
Importing
8686
^^^^^^^^^
@@ -106,7 +106,7 @@ Initialize the SDK to store common configurations that you use with the SDK.
106106
# defaults to us-central1
107107
location='us-central1',
108108
109-
# Googlge Cloud Stoage bucket in same region as location
109+
# Google Cloud Storage bucket in same region as location
110110
# used to stage artifacts
111111
staging_bucket='gs://my_staging_bucket',
112112
@@ -166,7 +166,7 @@ Vertex AI supports a variety of dataset schemas. References to these schemas are
166166

167167
Training
168168
^^^^^^^^
169-
The Vertex SDK for Python allows you train Custom and AutoML Models.
169+
The Vertex AI SDK for Python allows you train Custom and AutoML Models.
170170

171171
You can train custom models using a custom Python script, custom Python package, or container.
172172

@@ -201,9 +201,9 @@ It must write the model artifact to the environment variable populated by the tr
201201
job = aiplatform.CustomTrainingJob(
202202
display_name="my-training-job",
203203
script_path="training_script.py",
204-
container_uri="gcr.io/cloud-aiplatform/training/tf-cpu.2-2:latest",
204+
container_uri="us-docker.pkg.dev/vertex-ai/training/tf-cpu.2-2:latest",
205205
requirements=["gcsfs==0.7.1"],
206-
model_serving_container_image_uri="gcr.io/cloud-aiplatform/prediction/tf2-cpu.2-2:latest",
206+
model_serving_container_image_uri="us-docker.pkg.dev/vertex-ai/prediction/tf2-cpu.2-2:latest",
207207
)
208208
209209
model = job.run(my_dataset,
@@ -217,7 +217,7 @@ In the code block above `my_dataset` is managed dataset created in the `Dataset`
217217

218218
AutoMLs
219219
-------
220-
The Vertex SDK for Python supports AutoML tabular, image, text, video, and forecasting.
220+
The Vertex AI SDK for Python supports AutoML tabular, image, text, video, and forecasting.
221221

222222
To train an AutoML tabular model:
223223

@@ -266,7 +266,7 @@ To upload a model:
266266
model = aiplatform.Model.upload(
267267
display_name='my-model',
268268
artifact_uri="gs://python/to/my/model/dir",
269-
serving_container_image_uri="gcr.io/cloud-aiplatform/prediction/tf2-cpu.2-2:latest",
269+
serving_container_image_uri="us-docker.pkg.dev/vertex-ai/prediction/tf2-cpu.2-2:latest",
270270
)
271271
272272
To get a model:
@@ -358,7 +358,7 @@ To delete an endpoint:
358358
Pipelines
359359
---------
360360

361-
To create a Vertex Pipeline run and monitor until completion:
361+
To create a Vertex AI Pipeline run and monitor until completion:
362362

363363
.. code-block:: Python
364364
@@ -382,7 +382,7 @@ To create a Vertex Pipeline run and monitor until completion:
382382
pipeline_root=pipeline_root,
383383
)
384384
385-
# Execute pipeline in Vertex and monitor until completion
385+
# Execute pipeline in Vertex AI and monitor until completion
386386
pl.run(
387387
# Email address of service account to use for the pipeline run
388388
# You must have iam.serviceAccounts.actAs permission on the service account to use it
@@ -393,7 +393,7 @@ To create a Vertex Pipeline run and monitor until completion:
393393
sync=True
394394
)
395395
396-
To create a Vertex Pipeline without monitoring until completion, use `submit` instead of `run`:
396+
To create a Vertex AI Pipeline without monitoring until completion, use `submit` instead of `run`:
397397

398398
.. code-block:: Python
399399
@@ -417,7 +417,7 @@ To create a Vertex Pipeline without monitoring until completion, use `submit` in
417417
pipeline_root=pipeline_root,
418418
)
419419
420-
# Submit the Pipeline to Vertex
420+
# Submit the Pipeline to Vertex AI
421421
pl.submit(
422422
# Email address of service account to use for the pipeline run
423423
# You must have iam.serviceAccounts.actAs permission on the service account to use it
@@ -467,7 +467,7 @@ To use Explanation Metadata in endpoint deployment and model upload:
467467
Cloud Profiler
468468
----------------------------
469469

470-
Cloud Profiler allows you to profile your remote Vertex AI Training jobs on demand and visualize the results in Vertex Tensorboard.
470+
Cloud Profiler allows you to profile your remote Vertex AI Training jobs on demand and visualize the results in Vertex AI Tensorboard.
471471

472472
To start using the profiler with TensorFlow, update your training script to include the following:
473473

@@ -477,7 +477,7 @@ To start using the profiler with TensorFlow, update your training script to incl
477477
...
478478
cloud_profiler.init()
479479
480-
Next, run the job with with a Vertex TensorBoard instance. For full details on how to do this, visit https://cloud.google.com/vertex-ai/docs/experiments/tensorboard-overview
480+
Next, run the job with with a Vertex AI TensorBoard instance. For full details on how to do this, visit https://cloud.google.com/vertex-ai/docs/experiments/tensorboard-overview
481481

482482
Finally, visit your TensorBoard in your Google Cloud Console, navigate to the "Profile" tab, and click the `Capture Profile` button. This will allow users to capture profiling statistics for the running jobs.
483483

0 commit comments

Comments
 (0)