Skip to content

Commit 66d0677

Browse files
committed
Fix docstring style
1 parent 0c4e7c2 commit 66d0677

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoemulate/core/metrics.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ class TorchMetrics(Metric):
4848
4949
Parameters
5050
----------
51-
metric : MetricLike
51+
metric: MetricLike
5252
The torchmetrics metric class or partial.
53-
name : str
53+
name: str
5454
Display name for the metric. If None, uses the class name of the metric.
55-
maximize : bool
55+
maximize: bool
5656
Whether higher values are better.
5757
"""
5858

@@ -253,7 +253,7 @@ def get_metric(metric: str | Metric) -> Metric:
253253
254254
Parameters
255255
----------
256-
metric : str | Metric
256+
metric: str | Metric
257257
The metric specification. Can be:
258258
- A string shortcut like "r2", "rmse", "mse", "mae"
259259
- A Metric instance (returned as-is)

0 commit comments

Comments
 (0)