GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Support intermediary BQ Table for Custom Training by sasha-gitg · Pull Request #166 · googleapis/python-aiplatform

Conversation

@sasha-gitg

@sasha-gitg sasha-gitg commented Jan 11, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

fixes: b/176786861

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sasha-gitg
fix: add bq table arg
5a415a0
@sasha-gitg
sasha-gitg requested review from a team and dizcology as code owners January 11, 2021 15:37
@sasha-gitg
sasha-gitg requested review from a team and busunkim96 January 11, 2021 15:37
@snippet-bot

snippet-bot Bot commented Jan 11, 2021

Copy link
Copy Markdown

Here is the summary of changes.

You added 1 region tag.
  • samples/snippets/create_batch_prediction_job_tabular_forecasting_sample.py:15, tag aiplatform_create_batch_prediction_job_tabular_forecasting_sample

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 11, 2021
@sasha-gitg
sasha-gitg force-pushed the fix_bq branch from f2e3035 to 5a415a0 Compare January 11, 2021 15:39
@sasha-gitg
Merge branch 'dev' into fix_bq
d240d0a
@sasha-gitg
sasha-gitg removed request for a team, busunkim96 and dizcology January 11, 2021 15:40
@sasha-gitg sasha-gitg added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 11, 2021
sasha-gitg and others added 5 commits January 11, 2021 11:45
@sasha-gitg
Merge branch 'dev' into fix_bq
bca7f6c
@sasha-gitg
Merge branch 'dev' into fix_bq
04eeb8a
@sasha-gitg
Merge branch 'dev' into fix_bq
0659863
@sasha-gitg
Merge branch 'dev' into fix_bq
51c8275
@sasha-gitg
fix: add support for intermediary BQ table
3972925
@sasha-gitg sasha-gitg removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 13, 2021
@sasha-gitg
Merge branch 'dev' into fix_bq
4a58dce
@sasha-gitg sasha-gitg changed the title [WIP] fix: Support intermediary BQ Table for Custom Training fix: Support intermediary BQ Table for Custom Training Jan 13, 2021
@sasha-gitg
sasha-gitg requested review from dizcology, ivanmkc, morgandu and vinnysenthil January 13, 2021 16:44
@sasha-gitg
fix: uncover test
2ca1a48
morgandu
morgandu approved these changes Jan 13, 2021
View reviewed changes
vinnysenthil
vinnysenthil approved these changes Jan 13, 2021
View reviewed changes
@sasha-gitg
sasha-gitg merged commit 4e3587e into googleapis:dev Jan 13, 2021
@sasha-gitg
sasha-gitg deleted the fix_bq branch January 13, 2021 18:14
sasha-gitg added a commit that referenced this pull request Jan 19, 2021
@sasha-gitg @ivanmkc
@ivanmkc-google @morgandu @vinnysenthil
Chore: Merge dev into experimental release (#176)
4ea20ae
* fix: unblock builds (#132)

* chore: Update README with Experimental verbiage (#131)

* fix: Fixed comments (#116)

Co-authored-by: Ivan Cheung <[email protected]>

* feat: Implements a wrapped client that instantiates the client at every API invocation (#139)

* feat: Added optional model args for custom training (#129)

* Added optional model args

* fix: Removed etag

* fix: Added predict schemata and fixed type error

* fix: Added description and fixed predict_schemata

* Added _model_serving_container_command, _model_serving_container_args,                 env=self._model_serving_container_environment_variables and _model_serving_container_ports

* fix: Ran linter

* fix: Added tests for model_instance_schema_uri, model_parameters_schema_uri and model_prediction_schema_uri

* fix: Fixed env and ports and added tests

* fix: Removed model_labels

* fix: Moved container spec creation into init function

* fix: Fixed docstrings

* fix: Moved import to be alphabetical

* fix: Moved model creation to init function

* fix: Fixed predict_schemata

* fix: simplified predict schemata

* fix: added linter

* fix: Fixed trailing comma

* fix: Removed CustomTrainingJob private fields

* fix: Fixed model tests

* fix: Set managed_model to None

Co-authored-by: Ivan Cheung <[email protected]>

* Fix: refactor class constructor for retrieving resource (#125)

* Added property and abstract method _getter_method and _resource_noun, implemented method _get_gca_resource to class AiPlatformResourceNoun; Added _resource_noun, _getter_method, to Dataset, Model, Endpoint, subclasses of _Job, _TrainingJob, refactored (_)get_* and utils.full_resource_name in class constructor to self._get_gca_resource to Dataset, Model, Endpoint, _Job

* Added return value in _get_gca_resource, added method _sync_gca_resource in AiPlatformResourceNoun class; removed job_type, updated status method with _sync_gca_resource in _Job class

* fix: added return type and lint issues

* fix: merge conflict issue with models.py

* fix: F401 'abc' imported but unused

* chore: merge main into dev (#154)

* test: Dataset integration tests (#126)

* Add dataset.metadata.text to schemas

* Add first integation tests, Dataset class

* Make teardown work if test fails, update asserts

* Change test folder name, enable system tests

* Hide test_base, test_end_to_end for Kokoro CI bug

* Add GCP Project env var to Kokoro presubmit cfg

* Restore presubmit cfg, drop --quiet in unit tests

* Restore test_base, test_end_to_end to find timeout

* Skip tests depending on persistent resources

* Use auth default creds for system tests

* Drop unused import os

* feat: specialized dataset classes, fix: datasets refactor (#153)

* feat: Refactored Dataset by removing intermediate layers

* Added image_dataset and tabular_dataset subclass

* Moved metadata_schema_uri responsibility to subclass to enable forecasting

* Moved validation logic for tabular into Dataset._create_tabular

* Added validation in image_dataset and fixed bounding_box schema error

* Removed import_config

* Fixed metadata_schema_uri

* Fixed import and subclasses

* Added EmptyNontabularDatasource

* change import_metadata to ioformat

* added datasources.py

* added support of multiple gcs_sources

* fix: default (empty) dataset_metadata need to be set to {}, not None

* 1) imported datasources 2) added _support_metadata_schema_uris and _support_import_schema_classes 3) added getter and setter/validation for resource_metadata_schema_uri, metadata_schema_uri, and import_schema_uri 4) fixed request_metadata, data_item_labels 5) encapsulated dataset_metadata, and import_data_configs 6) added datasource configuration logic

* added image_dataset.py and tabular_dataset.py

* fix: refactor - create datasets modeule

* fix: cleanup __init__.py

* fix: data_item_labels

* fix: docstring

* fix:
- changed NonTabularDatasource.dataset_metadata default to None
- updated NonTabularDatasource docstring
- changed gcs_source type hint with Union
- changed _create_and_import to _create_encapsulated with datasource
- removed subclass.__init__ and irrelevant parameters in create

* fix: import the module instead of the classes for datasources

* fix: removed all validation for import_schema_uri

* fix: set parameter default to immutable

* fix: replaced Datasource / DatasourceImportable abstract class instead of a concrete type

* fix: added examples for gcs_source

* fix:
- remove Sequence from utils.py
- refactor datasources.py to _datasources.py
- change docstring format to arg_name (arg_type): convention
- change and include the type signature _supported_metadata_schema_uris
- change _validate_metadata_schema_uri
- refactor _create_encapsulated to _create_and_import
- refactor to module level imports
- add tests for ImageDataset and TabularDataset

* fix: remove all labels

* fix: remove Optional in docstring, add example for bq_source

* test: add import_data raise for tabular dataset test

* fix: refactor datasource creation with create_datasource

* fix: lint

Co-authored-by: Ivan Cheung <[email protected]>

* feat: Add AutoML Image Training Job class (#152)

* Add AutoMLImageTrainingJob, tests, constants

* Address reviewer comments

* feat: Add custom container support (#164)

* chore: merge main into dev (#162)

* fix: suppress no project id warning (#160)

* fix: suppress no project id warning

* fix: temporary suppress logging.WARNING and set credentials as google.auth.default credentials

* fix: move default credentials config to credentials property

* fix: add property setter for credentials to avoid everytime reset

* fix: Fixed wrong key value for multilabel (#168)

Co-authored-by: Ivan Cheung <[email protected]>

* feat: Add delete methods, add list_models and undeploy_all for Endpoint class (#165)

* Endpoint list_models, delete, undeploy_all WIP

* Finish delete + undeploy methods, tests

* Add global pool teardowns for test timeout issue

* Address reviewer comments, add async support

* fix: Fixed bug causing training failure for object detection (#171)

Co-authored-by: Ivan Cheung <[email protected]>

* fix: Support intermediary BQ Table for Custom Training (#166)

* chore: add AutoMLImageTrainingJob to aiplatform namespace (#173)

* fix: Unblock build (#174)

* fix: default credentials config related test failures (#167)

* fix: suppress no project id warning

* fix: temporary suppress logging.WARNING and set credentials as google.auth.default credentials

* fix: move default credentials config to credentials property

* fix: add property setter for credentials to avoid everytime reset

* fix: tests for set credentials to default when default not provided

* fix: change credentials with initializer default when not provided in AiPlatformResourceNoun

* fix: use credential mock in tests

* fix: lint

Co-authored-by: sasha-gitg <[email protected]>

Co-authored-by: Ivan Cheung <[email protected]>
Co-authored-by: Ivan Cheung <[email protected]>
Co-authored-by: Morgan Du <[email protected]>
Co-authored-by: Vinny Senthil <[email protected]>
sasha-gitg added a commit that referenced this pull request Jan 23, 2021
@sasha-gitg @ivanmkc
@ivanmkc-google @morgandu @vinnysenthil
chore: merge dev into mb-experimental-release (#185)
068e507
* fix: unblock builds (#132)

* chore: Update README with Experimental verbiage (#131)

* fix: Fixed comments (#116)

Co-authored-by: Ivan Cheung <[email protected]>

* feat: Implements a wrapped client that instantiates the client at every API invocation (#139)

* feat: Added optional model args for custom training (#129)

* Added optional model args

* fix: Removed etag

* fix: Added predict schemata and fixed type error

* fix: Added description and fixed predict_schemata

* Added _model_serving_container_command, _model_serving_container_args,                 env=self._model_serving_container_environment_variables and _model_serving_container_ports

* fix: Ran linter

* fix: Added tests for model_instance_schema_uri, model_parameters_schema_uri and model_prediction_schema_uri

* fix: Fixed env and ports and added tests

* fix: Removed model_labels

* fix: Moved container spec creation into init function

* fix: Fixed docstrings

* fix: Moved import to be alphabetical

* fix: Moved model creation to init function

* fix: Fixed predict_schemata

* fix: simplified predict schemata

* fix: added linter

* fix: Fixed trailing comma

* fix: Removed CustomTrainingJob private fields

* fix: Fixed model tests

* fix: Set managed_model to None

Co-authored-by: Ivan Cheung <[email protected]>

* Fix: refactor class constructor for retrieving resource (#125)

* Added property and abstract method _getter_method and _resource_noun, implemented method _get_gca_resource to class AiPlatformResourceNoun; Added _resource_noun, _getter_method, to Dataset, Model, Endpoint, subclasses of _Job, _TrainingJob, refactored (_)get_* and utils.full_resource_name in class constructor to self._get_gca_resource to Dataset, Model, Endpoint, _Job

* Added return value in _get_gca_resource, added method _sync_gca_resource in AiPlatformResourceNoun class; removed job_type, updated status method with _sync_gca_resource in _Job class

* fix: added return type and lint issues

* fix: merge conflict issue with models.py

* fix: F401 'abc' imported but unused

* chore: merge main into dev (#154)

* test: Dataset integration tests (#126)

* Add dataset.metadata.text to schemas

* Add first integation tests, Dataset class

* Make teardown work if test fails, update asserts

* Change test folder name, enable system tests

* Hide test_base, test_end_to_end for Kokoro CI bug

* Add GCP Project env var to Kokoro presubmit cfg

* Restore presubmit cfg, drop --quiet in unit tests

* Restore test_base, test_end_to_end to find timeout

* Skip tests depending on persistent resources

* Use auth default creds for system tests

* Drop unused import os

* feat: specialized dataset classes, fix: datasets refactor (#153)

* feat: Refactored Dataset by removing intermediate layers

* Added image_dataset and tabular_dataset subclass

* Moved metadata_schema_uri responsibility to subclass to enable forecasting

* Moved validation logic for tabular into Dataset._create_tabular

* Added validation in image_dataset and fixed bounding_box schema error

* Removed import_config

* Fixed metadata_schema_uri

* Fixed import and subclasses

* Added EmptyNontabularDatasource

* change import_metadata to ioformat

* added datasources.py

* added support of multiple gcs_sources

* fix: default (empty) dataset_metadata need to be set to {}, not None

* 1) imported datasources 2) added _support_metadata_schema_uris and _support_import_schema_classes 3) added getter and setter/validation for resource_metadata_schema_uri, metadata_schema_uri, and import_schema_uri 4) fixed request_metadata, data_item_labels 5) encapsulated dataset_metadata, and import_data_configs 6) added datasource configuration logic

* added image_dataset.py and tabular_dataset.py

* fix: refactor - create datasets modeule

* fix: cleanup __init__.py

* fix: data_item_labels

* fix: docstring

* fix:
- changed NonTabularDatasource.dataset_metadata default to None
- updated NonTabularDatasource docstring
- changed gcs_source type hint with Union
- changed _create_and_import to _create_encapsulated with datasource
- removed subclass.__init__ and irrelevant parameters in create

* fix: import the module instead of the classes for datasources

* fix: removed all validation for import_schema_uri

* fix: set parameter default to immutable

* fix: replaced Datasource / DatasourceImportable abstract class instead of a concrete type

* fix: added examples for gcs_source

* fix:
- remove Sequence from utils.py
- refactor datasources.py to _datasources.py
- change docstring format to arg_name (arg_type): convention
- change and include the type signature _supported_metadata_schema_uris
- change _validate_metadata_schema_uri
- refactor _create_encapsulated to _create_and_import
- refactor to module level imports
- add tests for ImageDataset and TabularDataset

* fix: remove all labels

* fix: remove Optional in docstring, add example for bq_source

* test: add import_data raise for tabular dataset test

* fix: refactor datasource creation with create_datasource

* fix: lint

Co-authored-by: Ivan Cheung <[email protected]>

* feat: Add AutoML Image Training Job class (#152)

* Add AutoMLImageTrainingJob, tests, constants

* Address reviewer comments

* feat: Add custom container support (#164)

* chore: merge main into dev (#162)

* fix: suppress no project id warning (#160)

* fix: suppress no project id warning

* fix: temporary suppress logging.WARNING and set credentials as google.auth.default credentials

* fix: move default credentials config to credentials property

* fix: add property setter for credentials to avoid everytime reset

* fix: Fixed wrong key value for multilabel (#168)

Co-authored-by: Ivan Cheung <[email protected]>

* feat: Add delete methods, add list_models and undeploy_all for Endpoint class (#165)

* Endpoint list_models, delete, undeploy_all WIP

* Finish delete + undeploy methods, tests

* Add global pool teardowns for test timeout issue

* Address reviewer comments, add async support

* fix: Fixed bug causing training failure for object detection (#171)

Co-authored-by: Ivan Cheung <[email protected]>

* fix: Support intermediary BQ Table for Custom Training (#166)

* chore: add AutoMLImageTrainingJob to aiplatform namespace (#173)

* fix: Unblock build (#174)

* fix: default credentials config related test failures (#167)

* fix: suppress no project id warning

* fix: temporary suppress logging.WARNING and set credentials as google.auth.default credentials

* fix: move default credentials config to credentials property

* fix: add property setter for credentials to avoid everytime reset

* fix: tests for set credentials to default when default not provided

* fix: change credentials with initializer default when not provided in AiPlatformResourceNoun

* fix: use credential mock in tests

* fix: lint

Co-authored-by: sasha-gitg <[email protected]>

* Fix: pass bq_destination to input data config when using training script (#181)

* fix: pass bigquery destination

* fix: add tests and formatting

Co-authored-by: Ivan Cheung <[email protected]>
Co-authored-by: Ivan Cheung <[email protected]>
Co-authored-by: Morgan Du <[email protected]>
Co-authored-by: Vinny Senthil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ivanmkc ivanmkc Awaiting requested review from ivanmkc
@dizcology dizcology Awaiting requested review from dizcology
2 more reviewers
@morgandu morgandu morgandu approved these changes
@vinnysenthil vinnysenthil vinnysenthil approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@sasha-gitg @morgandu @vinnysenthil
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.