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

feat: Add filtering to Vertex Experiments SDK. #4827

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion google/cloud/aiplatform/metadata/experiment_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def get_or_create(
def list(
cls,
*,
filter_str: Optional[str] = None,
project: Optional[str] = None,
location: Optional[str] = None,
credentials: Optional[auth_credentials.Credentials] = None,
Expand All @@ -327,6 +328,9 @@ def list(
```

Args:
filter (str):
Optional. An expression for filtering the results of the request.
For field names both snake_case and camelCase are supported.
project (str):
Optional. Project to list these experiments from. Overrides project set in
aiplatform.init.
Expand All @@ -342,7 +346,7 @@ def list(

filter_str = metadata_utils._make_filter_string(
schema_title=constants.SYSTEM_EXPERIMENT
)
) + " AND " + filter_str

with _SetLoggerLevel(resource):
experiment_contexts = context.Context.list(
Expand Down
Loading