Skip to content

Commit

Permalink
fix: log_metrics docstring error (#1588)
Browse files Browse the repository at this point in the history
* Update experiment_run_resource.py

* fix: log_metrics docstring

Co-authored-by: sina chavoshi <sina.chavoshi@gmail.com>
  • Loading branch information
jaycee-li and SinaChavoshi committed Aug 11, 2022
1 parent f787813 commit 0385c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/aiplatform/metadata/experiment_run_resource.py
Expand Up @@ -939,7 +939,7 @@ def log_params(self, params: Dict[str, Union[float, int, str]]):
Required. Parameter key/value pairs.
Raises:
ValueError: If key is not str or value is not float, int, str.
TypeError: If key is not str or value is not float, int, str.
"""
# query the latest run execution resource before logging.
for key, value in params.items():
Expand Down Expand Up @@ -968,7 +968,7 @@ def log_metrics(self, metrics: Dict[str, Union[float, int, str]]):
```
Args:
metrics (Dict[str, Union[float, int]]):
metrics (Dict[str, Union[float, int, str]]):
Required. Metrics key/value pairs.
Raises:
TypeError: If keys are not str or values are not float, int, or str.
Expand Down

0 comments on commit 0385c4c

Please sign in to comment.