Skip to content

Commit

Permalink
Fix another problem in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra-barikbin committed Jul 31, 2024
1 parent 8471c4c commit 8301916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ignite/metrics/metric_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class MetricGroup(Metric):
We construct a group of metrics, attach them to the engine at once and retrieve their result.
.. code-block:: python
import torch
metric_group = MetricGroup({'acc': Accuracy(), 'precision': Precision(), 'loss': Loss(nn.NLLLoss())})
Expand All @@ -32,7 +33,7 @@ class MetricGroup(Metric):
state.metrics["acc"], state.metrics["precision"], state.metrics["loss"]
# And also altogether
state.metrics["eval_metrics]
state.metrics["eval_metrics"]
"""

_state_dict_all_req_keys = ("metrics",)
Expand Down

0 comments on commit 8301916

Please sign in to comment.