Skip to content

Commit

Permalink
Merge branch 'master' into Inappropriate_Logic-1_mean_ap.py5097474515…
Browse files Browse the repository at this point in the history
…431963994.diff
  • Loading branch information
mergify[bot] authored Sep 15, 2023
2 parents a9508c4 + 9b21108 commit a7228a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment

coverage ==7.3.0
pytest ==7.4.1
coverage ==7.3.1
pytest ==7.4.2
pytest-cov ==4.1.0
pytest-doctestplus ==1.0.0
pytest-rerunfailures ==12.0
Expand Down
6 changes: 2 additions & 4 deletions src/torchmetrics/wrappers/running.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ class Running(WrapperMetric):
base_metric: The metric to wrap.
window: The size of the running window.
Example:
# Single metric
Example (single metric):
>>> from torch import tensor
>>> from torchmetrics.wrappers import Running
>>> from torchmetrics.aggregation import SumMetric
Expand All @@ -61,8 +60,7 @@ class Running(WrapperMetric):
current_val=tensor(4.), running_val=tensor(9.), total_val=tensor(10)
current_val=tensor(5.), running_val=tensor(12.), total_val=tensor(15)
Example:
# Metric collection
Example (metric collection):
>>> from torch import tensor
>>> from torchmetrics.wrappers import Running
>>> from torchmetrics import MetricCollection
Expand Down

0 comments on commit a7228a8

Please sign in to comment.