Skip to content

Commit 0385c4c

Browse files
fix: log_metrics docstring error (#1588)
* Update experiment_run_resource.py * fix: log_metrics docstring Co-authored-by: sina chavoshi <[email protected]>
1 parent f787813 commit 0385c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/aiplatform/metadata/experiment_run_resource.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def log_params(self, params: Dict[str, Union[float, int, str]]):
939939
Required. Parameter key/value pairs.
940940
941941
Raises:
942-
ValueError: If key is not str or value is not float, int, str.
942+
TypeError: If key is not str or value is not float, int, str.
943943
"""
944944
# query the latest run execution resource before logging.
945945
for key, value in params.items():
@@ -968,7 +968,7 @@ def log_metrics(self, metrics: Dict[str, Union[float, int, str]]):
968968
```
969969
970970
Args:
971-
metrics (Dict[str, Union[float, int]]):
971+
metrics (Dict[str, Union[float, int, str]]):
972972
Required. Metrics key/value pairs.
973973
Raises:
974974
TypeError: If keys are not str or values are not float, int, or str.

0 commit comments

Comments
 (0)