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 — Fixed incorrect key for AutoMLTrainingJob by ivanmkc · Pull Request #168 · googleapis/python-aiplatform

Conversation

@ivanmkc

@ivanmkc ivanmkc commented Jan 12, 2021

Copy link
Copy Markdown
Contributor

The training task key "multiLabel" was incorrectly named "modelLabel" which results in failed training job run.

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.INVALID_ARGUMENT
	details = "TrainingJob.inputs does not match job definition: com.google.protobuf.InvalidProtocolBufferException: Cannot find field: modelLabel in message google.cloud.aiplatform.master.schema.trainingjob.definition.AutoMlImageClassificationInputs."
	debug_error_string = "{"created":"@1610450635.815653353","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"TrainingJob.inputs does not match job definition: com.google.protobuf.InvalidProtocolBufferException: Cannot find field: modelLabel in message google.cloud.aiplatform.master.schema.trainingjob.definition.AutoMlImageClassificationInputs.","grpc_status":3}"
>

Sorry, something went wrong.

Uh oh!

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

All reactions
@ivanmkc-google
fix: Fixed wrong key value for multilabel
3dede78
@ivanmkc
ivanmkc requested review from dizcology and telpirion as code owners January 12, 2021 12:25
@ivanmkc
ivanmkc requested a review from a team January 12, 2021 12:25
@ivanmkc
ivanmkc requested a review from a team as a code owner January 12, 2021 12:25
@ivanmkc
ivanmkc requested review from a team and engelke and removed request for a team January 12, 2021 12:25
@ivanmkc
ivanmkc changed the base branch from master to dev January 12, 2021 12:26
@ivanmkc
ivanmkc requested review from sasha-gitg and vinnysenthil January 12, 2021 12:26
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 12, 2021
@snippet-bot

snippet-bot Bot commented Jan 12, 2021

Copy link
Copy Markdown

Here is the summary of changes.

You added 98 region tags.
  • samples/snippets/cancel_batch_prediction_job_sample.py:15, tag aiplatform_cancel_batch_prediction_job_sample
  • samples/snippets/cancel_custom_job_sample.py:15, tag aiplatform_cancel_custom_job_sample
  • samples/snippets/cancel_data_labeling_job_sample.py:15, tag aiplatform_cancel_data_labeling_job_sample
  • samples/snippets/cancel_hyperparameter_tuning_job_sample.py:15, tag aiplatform_cancel_hyperparameter_tuning_job_sample
  • samples/snippets/cancel_training_pipeline_sample.py:15, tag aiplatform_cancel_training_pipeline_sample
  • samples/snippets/create_batch_prediction_job_bigquery_sample.py:15, tag aiplatform_create_batch_prediction_job_bigquery_sample
  • samples/snippets/create_batch_prediction_job_sample.py:15, tag aiplatform_create_batch_prediction_job_sample
  • samples/snippets/create_batch_prediction_job_tabular_forecasting_sample.py:15, tag aiplatform_create_batch_prediction_job_tabular_forecasting_sample
  • samples/snippets/create_batch_prediction_job_text_classification_sample.py:15, tag aiplatform_create_batch_prediction_job_text_classification_sample
  • samples/snippets/create_batch_prediction_job_text_entity_extraction_sample.py:15, tag aiplatform_create_batch_prediction_job_text_entity_extraction_sample
  • samples/snippets/create_batch_prediction_job_text_sentiment_analysis_sample.py:15, tag aiplatform_create_batch_prediction_job_text_sentiment_analysis_sample
  • samples/snippets/create_batch_prediction_job_video_action_recognition_sample.py:15, tag aiplatform_create_batch_prediction_job_video_action_recognition_sample
  • samples/snippets/create_batch_prediction_job_video_classification_sample.py:15, tag aiplatform_create_batch_prediction_job_video_classification_sample
  • samples/snippets/create_batch_prediction_job_video_object_tracking_sample.py:15, tag aiplatform_create_batch_prediction_job_video_object_tracking_sample
  • samples/snippets/create_custom_job_sample.py:15, tag aiplatform_create_custom_job_sample
  • samples/snippets/create_data_labeling_job_active_learning_sample.py:15, tag aiplatform_create_data_labeling_job_active_learning_sample
  • samples/snippets/create_data_labeling_job_image_segmentation_sample.py:15, tag aiplatform_create_data_labeling_job_image_segmentation_sample
  • samples/snippets/create_data_labeling_job_images_sample.py:15, tag aiplatform_create_data_labeling_job_images_sample
  • samples/snippets/create_data_labeling_job_sample.py:15, tag aiplatform_create_data_labeling_job_sample
  • samples/snippets/create_data_labeling_job_specialist_pool_sample.py:15, tag aiplatform_create_data_labeling_job_specialist_pool_sample
  • samples/snippets/create_data_labeling_job_video_sample.py:15, tag aiplatform_create_data_labeling_job_video_sample
  • samples/snippets/create_dataset_image_sample.py:15, tag aiplatform_create_dataset_image_sample
  • samples/snippets/create_dataset_sample.py:15, tag aiplatform_create_dataset_sample
  • samples/snippets/create_dataset_tabular_bigquery_sample.py:15, tag aiplatform_create_dataset_tabular_bigquery_sample
  • samples/snippets/create_dataset_tabular_gcs_sample.py:15, tag aiplatform_create_dataset_tabular_gcs_sample
  • samples/snippets/create_dataset_text_sample.py:15, tag aiplatform_create_dataset_text_sample
  • samples/snippets/create_dataset_video_sample.py:15, tag aiplatform_create_dataset_video_sample
  • samples/snippets/create_endpoint_sample.py:15, tag aiplatform_create_endpoint_sample
  • samples/snippets/create_hyperparameter_tuning_job_python_package_sample.py:15, tag aiplatform_create_hyperparameter_tuning_job_python_package_sample
  • samples/snippets/create_hyperparameter_tuning_job_sample.py:15, tag aiplatform_create_hyperparameter_tuning_job_sample
  • samples/snippets/create_training_pipeline_custom_job_sample.py:15, tag aiplatform_create_training_pipeline_custom_job_sample
  • samples/snippets/create_training_pipeline_custom_training_managed_dataset_sample.py:15, tag aiplatform_create_training_pipeline_custom_training_managed_dataset_sample
  • samples/snippets/create_training_pipeline_image_classification_sample.py:15, tag aiplatform_create_training_pipeline_image_classification_sample
  • samples/snippets/create_training_pipeline_image_object_detection_sample.py:15, tag aiplatform_create_training_pipeline_image_object_detection_sample
  • samples/snippets/create_training_pipeline_sample.py:15, tag aiplatform_create_training_pipeline_sample
  • samples/snippets/create_training_pipeline_tabular_classification_sample.py:15, tag aiplatform_create_training_pipeline_tabular_classification_sample
  • samples/snippets/create_training_pipeline_tabular_forecasting_sample.py:15, tag aiplatform_create_training_pipeline_tabular_forecasting_sample
  • samples/snippets/create_training_pipeline_tabular_regression_sample.py:15, tag aiplatform_create_training_pipeline_tabular_regression_sample
  • samples/snippets/create_training_pipeline_text_classification_sample.py:15, tag aiplatform_create_training_pipeline_text_classification_sample
  • samples/snippets/create_training_pipeline_text_entity_extraction_sample.py:15, tag aiplatform_create_training_pipeline_text_entity_extraction_sample
  • samples/snippets/create_training_pipeline_text_sentiment_analysis_sample.py:15, tag aiplatform_create_training_pipeline_text_sentiment_analysis_sample
  • samples/snippets/create_training_pipeline_video_action_recognition_sample.py:15, tag aiplatform_create_training_pipeline_video_action_recognition_sample
  • samples/snippets/create_training_pipeline_video_classification_sample.py:15, tag aiplatform_create_training_pipeline_video_classification_sample
  • samples/snippets/create_training_pipeline_video_object_tracking_sample.py:15, tag aiplatform_create_training_pipeline_video_object_tracking_sample
  • samples/snippets/delete_batch_prediction_job_sample.py:15, tag aiplatform_delete_batch_prediction_job_sample
  • samples/snippets/delete_custom_job_sample.py:15, tag aiplatform_delete_custom_job_sample
  • samples/snippets/delete_data_labeling_job_sample.py:15, tag aiplatform_delete_data_labeling_job_sample
  • samples/snippets/delete_dataset_sample.py:15, tag aiplatform_delete_dataset_sample
  • samples/snippets/delete_endpoint_sample.py:15, tag aiplatform_delete_endpoint_sample
  • samples/snippets/delete_hyperparameter_tuning_job_sample.py:15, tag aiplatform_delete_hyperparameter_tuning_job_sample
  • samples/snippets/delete_model_sample.py:15, tag aiplatform_delete_model_sample
  • samples/snippets/delete_training_pipeline_sample.py:15, tag aiplatform_delete_training_pipeline_sample
  • samples/snippets/deploy_model_custom_trained_model_sample.py:15, tag aiplatform_deploy_model_custom_trained_model_sample
  • samples/snippets/deploy_model_sample.py:15, tag aiplatform_deploy_model_sample
  • samples/snippets/explain_tabular_sample.py:15, tag aiplatform_explain_tabular_sample
  • samples/snippets/export_model_sample.py:15, tag aiplatform_export_model_sample
  • samples/snippets/export_model_tabular_classification_sample.py:15, tag aiplatform_export_model_tabular_classification_sample
  • samples/snippets/export_model_video_action_recognition_sample.py:15, tag aiplatform_export_model_video_action_recognition_sample
  • samples/snippets/get_batch_prediction_job_sample.py:15, tag aiplatform_get_batch_prediction_job_sample
  • samples/snippets/get_custom_job_sample.py:15, tag aiplatform_get_custom_job_sample
  • samples/snippets/get_hyperparameter_tuning_job_sample.py:15, tag aiplatform_get_hyperparameter_tuning_job_sample
  • samples/snippets/get_model_evaluation_image_classification_sample.py:15, tag aiplatform_get_model_evaluation_image_classification_sample
  • samples/snippets/get_model_evaluation_image_object_detection_sample.py:15, tag aiplatform_get_model_evaluation_image_object_detection_sample
  • samples/snippets/get_model_evaluation_sample.py:15, tag aiplatform_get_model_evaluation_sample
  • samples/snippets/get_model_evaluation_slice_sample.py:15, tag aiplatform_get_model_evaluation_slice_sample
  • samples/snippets/get_model_evaluation_tabular_classification_sample.py:15, tag aiplatform_get_model_evaluation_tabular_classification_sample
  • samples/snippets/get_model_evaluation_tabular_regression_sample.py:15, tag aiplatform_get_model_evaluation_tabular_regression_sample
  • samples/snippets/get_model_evaluation_text_classification_sample.py:15, tag aiplatform_get_model_evaluation_text_classification_sample
  • samples/snippets/get_model_evaluation_text_entity_extraction_sample.py:15, tag aiplatform_get_model_evaluation_text_entity_extraction_sample
  • samples/snippets/get_model_evaluation_text_sentiment_analysis_sample.py:15, tag aiplatform_get_model_evaluation_text_sentiment_analysis_sample
  • samples/snippets/get_model_evaluation_video_action_recognition_sample.py:15, tag aiplatform_get_model_evaluation_video_action_recognition_sample
  • samples/snippets/get_model_evaluation_video_classification_sample.py:15, tag aiplatform_get_model_evaluation_video_classification_sample
  • samples/snippets/get_model_evaluation_video_object_tracking_sample.py:15, tag aiplatform_get_model_evaluation_video_object_tracking_sample
  • samples/snippets/get_model_sample.py:15, tag aiplatform_get_model_sample
  • samples/snippets/get_training_pipeline_sample.py:15, tag aiplatform_get_training_pipeline_sample
  • samples/snippets/import_data_image_classification_single_label_sample.py:15, tag aiplatform_import_data_image_classification_single_label_sample
  • samples/snippets/import_data_image_object_detection_sample.py:15, tag aiplatform_import_data_image_object_detection_sample
  • samples/snippets/import_data_sample.py:15, tag aiplatform_import_data_sample
  • samples/snippets/import_data_text_classification_single_label_sample.py:15, tag aiplatform_import_data_text_classification_single_label_sample
  • samples/snippets/import_data_text_entity_extraction_sample.py:15, tag aiplatform_import_data_text_entity_extraction_sample
  • samples/snippets/import_data_text_sentiment_analysis_sample.py:15, tag aiplatform_import_data_text_sentiment_analysis_sample
  • samples/snippets/import_data_video_action_recognition_sample.py:15, tag aiplatform_import_data_video_action_recognition_sample
  • samples/snippets/import_data_video_classification_sample.py:15, tag aiplatform_import_data_video_classification_sample
  • samples/snippets/import_data_video_object_tracking_sample.py:15, tag aiplatform_import_data_video_object_tracking_sample
  • samples/snippets/list_model_evaluation_slices_sample.py:15, tag aiplatform_list_model_evaluation_slices_sample
  • samples/snippets/predict_custom_trained_model_sample.py:15, tag aiplatform_predict_custom_trained_model_sample
  • samples/snippets/predict_image_classification_sample.py:15, tag aiplatform_predict_image_classification_sample
  • samples/snippets/predict_image_object_detection_sample.py:15, tag aiplatform_predict_image_object_detection_sample
  • samples/snippets/predict_sample.py:15, tag aiplatform_predict_tutorial
  • samples/snippets/predict_sample.py:16, tag aiplatform_predict_sample
  • samples/snippets/predict_tabular_classification_sample.py:15, tag aiplatform_predict_tabular_classification_sample
  • samples/snippets/predict_tabular_regression_sample.py:15, tag aiplatform_predict_tabular_regression_sample
  • samples/snippets/predict_text_classification_single_label_sample.py:15, tag aiplatform_predict_text_classification_single_label_sample
  • samples/snippets/predict_text_entity_extraction_sample.py:15, tag aiplatform_predict_text_entity_extraction_sample
  • samples/snippets/predict_text_sentiment_analysis_sample.py:15, tag aiplatform_predict_text_sentiment_analysis_sample
  • samples/snippets/upload_model_explain_image_managed_container_sample.py:15, tag aiplatform_upload_model_explain_image_managed_container_sample
  • samples/snippets/upload_model_explain_tabular_managed_container_sample.py:15, tag aiplatform_upload_model_explain_tabular_managed_container_sample
  • samples/snippets/upload_model_sample.py:15, tag aiplatform_upload_model_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.

sasha-gitg
sasha-gitg approved these changes Jan 12, 2021
View reviewed changes

@sasha-gitg sasha-gitg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Sorry, something went wrong.

Uh oh!

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

All reactions
vinnysenthil
vinnysenthil approved these changes Jan 12, 2021
View reviewed changes
@ivanmkc
ivanmkc merged commit 97fc6ee into googleapis:dev Jan 12, 2021
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

@sasha-gitg sasha-gitg sasha-gitg approved these changes
@dizcology dizcology Awaiting requested review from dizcology
@telpirion telpirion Awaiting requested review from telpirion
@engelke engelke Awaiting requested review from engelke
+1 more reviewer
@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.

4 participants

@ivanmkc @vinnysenthil @sasha-gitg @ivanmkc-google
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.