Skip to content

Commit

Permalink
Merge branch 'main' into mikealawrence-add-tft-model-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Mlawrence95 authored Dec 1, 2022
2 parents b3e0849 + b2f8c42 commit 379f873
Show file tree
Hide file tree
Showing 119 changed files with 5,813 additions and 2,254 deletions.
34 changes: 2 additions & 32 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,5 @@
# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

# The Cloud AI DPE team, Yoshi Python team, and the Vertex SDK dev team are the default owners
* @googleapis/cdpe-cloudai @googleapis/yoshi-python @googleapis/cloud-aiplatform-model-builder-sdk

# The AI Platform GAPIC libraries are owned by Cloud AI DPE
/google/cloud/aiplatform_*/** @googleapis/cdpe-cloudai

# The Vertex SDK is owned by Vertex SDK Dev team
/google/cloud/aiplatform/** @googleapis/cloud-aiplatform-model-builder-sdk
/tests/system/aiplatform/** @googleapis/cloud-aiplatform-model-builder-sdk @googleapis/vertex-ai-metadata
/tests/unit/aiplatform/** @googleapis/cloud-aiplatform-model-builder-sdk @googleapis/vertex-ai-metadata

# The Cloud AI DPE team is the default owner for samples
/samples/**/*.py @googleapis/cdpe-cloudai @googleapis/python-samples-reviewers
/.sample_configs/** @googleapis/cdpe-cloudai

# The enhanced client library tests are owned by Cloud AI DPE
/tests/unit/enhanced_library/*.py @googleapis/cdpe-cloudai

# Core library files owned by Cloud AI DPE and Vertex SDK Dev teams
CHANGELOG.md @googleapis/cloud-aiplatform-model-builder-sdk @googleapis/cdpe-cloudai
README.rst @googleapis/cloud-aiplatform-model-builder-sdk @googleapis/cdpe-cloudai
setup.py @googleapis/cloud-aiplatform-model-builder-sdk @googleapis/cdpe-cloudai

# Vertex AI product team-specific ownership
/google/cloud/aiplatform/constants/prediction.py @googleapis/vertex-prediction-team
/google/cloud/aiplatform/pipeline_jobs.py @googleapis/kubeflow-pipelines
/google/cloud/aiplatform/utils/pipeline_utils.py @googleapis/kubeflow-pipelines
/google/cloud/aiplatform/utils/yaml_utils.py @googleapis/kubeflow-pipelines
/google/cloud/aiplatform/constants/pipeline.py @googleapis/kubeflow-pipelines

# The Vertex Metadata SDK is owned by Vertex AI Metadata SDK team
/google/cloud/aiplatform/metadata @googleapis/vertex-ai-metadata
# The Vertex SDK dev team is the default owner for approving PRs.
* @googleapis/cloud-aiplatform-model-builder-sdk
7 changes: 6 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
- [ ] Get the necessary approvals
- [ ] Once the last commit on the PR has been approved, add the "ready to pull" label to the Pull Request

Fixes #<issue_number_goes_here> 🦕
Note: do not merge your PR from GitHub. Adding the "ready to pull" label is the final step in the review process.
After approvals, the changes in your PR will be committed to the `main` branch and this PR will be closed.

Fixes #<issue_number_goes_here> 🦕
5 changes: 5 additions & 0 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# https://github.com/googleapis/repo-automation-bots/tree/main/packages/sync-repo-settings

# We are disabling this bot until https://github.com/googleapis/repo-automation-bots/issues/4617
# is resolved
enabled: false

# Rules for main branch protection
mergeCommitAllowed: true
branchProtectionRules:
Expand Down
325 changes: 177 additions & 148 deletions .kokoro/requirements.txt

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
# Changelog


## [1.19.0](https://github.com/googleapis/python-aiplatform/compare/v1.18.3...v1.19.0) (2022-11-17)


### Features

* Add Feature Store: Streaming Ingestion (write_feature_values()) and introduce Preview namespace to Vertex SDK ([bae0315](https://github.com/googleapis/python-aiplatform/commit/bae03158c06865d1b61c06a1c8af64e876ce76dd))
* Add bq_dataset_id parameter to batch_serve_to_df ([bb72562](https://github.com/googleapis/python-aiplatform/commit/bb72562f4515b6ace73a735477584ca0b5a30f58))
* Add annotation_labels to ImportDataConfig in aiplatform v1 dataset.proto ([43e2805](https://github.com/googleapis/python-aiplatform/commit/43e28052d798c380de6e102edbe257a0100738cd))
* Add support for ordery_by in Metadata SDK list methods for Artifact, Execution and Context. ([2377606](https://github.com/googleapis/python-aiplatform/commit/23776066909b5b7f77f704722d2719e1a1733ad4))
* Support global network parameter. ([c7f57ad](https://github.com/googleapis/python-aiplatform/commit/c7f57ad505b7251b9c663538e2312998445db691))


### Bug Fixes

* Correct data file gcs path for import_data_text_sentiment_analysis_sample test ([86df4b5](https://github.com/googleapis/python-aiplatform/commit/86df4b5d79118caf8f45c3845c92afe6585c24e9))
* Print error for schema classes ([13e2165](https://github.com/googleapis/python-aiplatform/commit/13e216518f20a32c7e18e6ea5b497a5fcb1d77a0))


### Documentation

* Update README with new link for AI Platform API ([35b83d9](https://github.com/googleapis/python-aiplatform/commit/35b83d90649ec396b736469278def4aaaf80621e))

## [1.18.3](https://github.com/googleapis/python-aiplatform/compare/v1.18.2...v1.18.3) (2022-11-01)


### Documentation

* Add a sample for get_experiment_run_artifacts ([7266352](https://github.com/googleapis/python-aiplatform/commit/7266352ddddf035f68aed96d05d27bdf46559418))

## [1.18.3](https://github.com/googleapis/python-aiplatform/compare/v1.18.2...v1.18.3) (2022-10-31)


### Documentation

* Add a sample for get_experiment_run_artifacts ([7266352](https://github.com/googleapis/python-aiplatform/commit/7266352ddddf035f68aed96d05d27bdf46559418))

## [1.18.2](https://github.com/googleapis/python-aiplatform/compare/v1.18.0...v1.18.2) (2022-10-20)


### Bug Fixes

* Added proto message conversion to MDMJob.update fields ([#1718](https://github.com/googleapis/python-aiplatform/issues/1718)) ([9e77c61](https://github.com/googleapis/python-aiplatform/commit/9e77c61ab7349d4278274b317d316dbf2b8453c7))
* Log_classification_metrics ([#1742](https://github.com/googleapis/python-aiplatform/issues/1742)) ([3588526](https://github.com/googleapis/python-aiplatform/commit/3588526deb5e5c5cf7467d8ef104cff3dafaa09f))
* PipelineJob should only pass bearer tokens for AR URIs ([b43851c](https://github.com/googleapis/python-aiplatform/commit/b43851c791441e5a789ed43ffb9fe855555bb017))


### Documentation

* Fix create experiment sample ([#1716](https://github.com/googleapis/python-aiplatform/issues/1716)) ([cba7fbf](https://github.com/googleapis/python-aiplatform/commit/cba7fbfba6f06273aa3f95911c92d25720009c28))
* Resurface googleapis.dev and prediction docs ([#1724](https://github.com/googleapis/python-aiplatform/issues/1724)) ([24f0c6f](https://github.com/googleapis/python-aiplatform/commit/24f0c6ff0ab25b2d03c1e0521f680fea8ed35d00))
* **samples:** Improve docstring of Vertex AI Python SDK Model Registry samples ([#1705](https://github.com/googleapis/python-aiplatform/issues/1705)) ([f97e90f](https://github.com/googleapis/python-aiplatform/commit/f97e90f3d40e34c4af92dccbfe8246943e8c79d5))

## [1.18.1](https://github.com/googleapis/python-aiplatform/compare/v1.18.0...v1.18.1) (2022-10-10)


### Bug Fixes

* **deps:** Allow protobuf 3.19.5 ([#1720](https://github.com/googleapis/python-aiplatform/issues/1720)) ([83e3b7c](https://github.com/googleapis/python-aiplatform/commit/83e3b7c284d3fe0b5e40b3dc25c6246e792c24c0))

## [1.18.0](https://github.com/googleapis/python-aiplatform/compare/v1.17.1...v1.18.0) (2022-10-03)


Expand Down
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ In order to use this library, you first need to go through the following steps:

.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
.. _Enable the Vertex AI API.: https://cloud.google.com/ai-platform/docs
.. _Enable the Vertex AI API.: https://cloud.google.com/vertex-ai/docs/start/use-vertex-ai-python-sdk
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html

Installation
Expand Down Expand Up @@ -274,7 +274,7 @@ To get a model:
.. code-block:: Python
model = aiplatform.Model('/projects/my-project/locations/us-central1/models/{MODEL_ID}')
To upload a model:
Expand Down Expand Up @@ -315,16 +315,16 @@ To list all model evaluations for a model:

.. code-block:: Python
model = aiplatform.Model('/projects/my-project/locations/us-central1/models/{MODEL_ID}')
model = aiplatform.Model('projects/my-project/locations/us-central1/models/{MODEL_ID}')
evaluations = model.list_model_evaluations()
To get the model evaluation resource for a given model:

.. code-block:: Python
model = aiplatform.Model('/projects/my-project/locations/us-central1/models/{MODEL_ID}')
model = aiplatform.Model('projects/my-project/locations/us-central1/models/{MODEL_ID}')
# returns the first evaluation with no arguments, you can also pass the evaluation ID
evaluation = model.get_model_evaluation()
Expand All @@ -337,7 +337,7 @@ You can also create a reference to your model evaluation directly by passing in
.. code-block:: Python
evaluation = aiplatform.ModelEvaluation(
evaluation_name='/projects/my-project/locations/us-central1/models/{MODEL_ID}/evaluations/{EVALUATION_ID}')
evaluation_name='projects/my-project/locations/us-central1/models/{MODEL_ID}/evaluations/{EVALUATION_ID}')
Alternatively, you can create a reference to your evaluation by passing in the model and evaluation IDs:

Expand Down
2 changes: 1 addition & 1 deletion docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Vertex AI SDK for Python
:target: https://pypi.org/project/google-cloud-aiplatform/
.. _Vertex AI: https://cloud.google.com/vertex-ai/docs
.. _Client Library Documentation: https://googleapis.dev/python/aiplatform/latest
.. _Product Documentation: https://cloud.google.com/ai-platform/docs
.. _Product Documentation: https://cloud.google.com/vertex-ai/docs


Quick Start
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions google/cloud/aiplatform/_pipeline_based_service/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-

# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from google.cloud.aiplatform._pipeline_based_service.pipeline_based_service import (
_VertexAiPipelineBasedService,
)

__all__ = ("_VertexAiPipelineBasedService",)
Loading

0 comments on commit 379f873

Please sign in to comment.