Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update Model.list_model_evaluations and get_model_evaluation to use the provided version #1616

Merged
merged 5 commits into from
Aug 31, 2022

Conversation

sararob
Copy link
Contributor

@sararob sararob commented Aug 26, 2022

Model.get_model_evaluation and Model.list_model_evaluations previously didn't support Model Registry, so they only returned evaluations for the version set as the default. This fix uses the version a model was instantiated with via aiplatform.Model(model_name="projects/123/models/456@1"), and passes that versioned resource name to the list and get methods for model evaluations.

I'll open a separate PR to add a list_model_evaluations method to the ModelRegistry class that allows for passing a model version as a parameter.

Fixes b/243835689 🦕

@sararob sararob requested a review from a team as a code owner August 26, 2022 19:16
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Aug 26, 2022
@sararob sararob changed the title feat: add model versioning support to get and list model evaluations fix: update Model.list_model_evaluations and get_model_evaluation to use the provided version Aug 31, 2022
@sararob sararob requested a review from sasha-gitg August 31, 2022 13:25
@sararob sararob merged commit 8fb836b into googleapis:main Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vertex-ai Issues related to the googleapis/python-aiplatform API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants