Skip to content

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.

2 participants