GeezerVison is showing github.com — feat: Expose additional attributes into Vertex SDK to close gap with GAPIC by vinnysenthil · Pull Request #477 · googleapis/python-aiplatform
Conversation
Exposes the following attributes:
Base Resource Noun
VertexAiResourceNoun.encryption_spec
VertexAiResourceNoun.labels
TrainingJob
_TrainingJob.start_time
_TrainingJob.end_time
_TrainingJob.error
_CustomTrainingJob.network
Job
_Job.start_time
_Job.end_time
_Job.error
HyperparameterTuningJob.network
CustomJob.network
Model
Model.predict_schemata
Model.supported_deployment_resources_types
Model.supported_input_storage_formats
Model.supported_output_storage_formats
Model.training_pipeline
Model.container_spec
Endpoint
Endpoint.traffic_split
Endpoint.network
BatchPredictionJob
BatchPredictionJob.output_info
BatchPredictionJob.partial_failures
BatchPredictionJob.completion_stats
Other changes
Dataset.__len__()
- Removed due to error with unit tests, will add later once b/190008971 is addressed
_Training_Job._get_and_return_subclass()
- Fixed
CustomJob._list_method
- Unit tests for new methods
Fixes b/185913907 🦕
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
vinnysenthil
changed the title
feat: [Work in Progress] Expose additional attributes into Vertex SDK to close gap with GAPIC
feat: Expose additional attributes into Vertex SDK to close gap with GAPIC
Jun 15, 2021
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
|
"""Time when the Pipline or Job entered the `JOB_STATE_RUNNING` or
|
|
|
`PIPELINE_STATE_RUNNING` for the first time. Only for Job or Pipeline resources."""
|
|
|
self._sync_gca_resource()
|
|
|
return getattr(self._gca_resource, "start_time")
|
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.
Is the getattr access pattern necessary? It seems like if the field doesn't exist in the proto, it will default to return None.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
I thought about this, if we are certain the field will always be present then we should return it directly. But I went with getattr for fields that are Optional and we know won't be populated sometimes. However they do appear to default to None, any preference on your end?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
Let's figure out the discussion on _get_and_return_subclass
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
morgandu
Awaiting requested review from morgandu
+1 more reviewer
ivanmkc
ivanmkc 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
api: aiplatform
Issues related to the AI Platform API.
cla: yes
This human has signed the Contributor License Agreement.
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.
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.
|