Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ioangatop committed Jan 17, 2024
1 parent acb4669 commit c30aa1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/eva/metrics/core/collection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Metric collection objects."""
"""Metric collection aggregator."""
import torchmetrics

MetricCollection = torchmetrics.MetricCollection
Expand Down
2 changes: 1 addition & 1 deletion src/eva/metrics/core/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
import torchmetrics

Metric = torchmetrics.Metric
"""Base class of metrics."""
"""Abstract metric class."""
8 changes: 4 additions & 4 deletions src/eva/metrics/core/schemas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Metrics related schemas."""
"""Metrics related helper schemas."""
import dataclasses

from eva.metrics.core.typings import MetricModuleType
Expand All @@ -12,10 +12,10 @@ class MetricsSchema:
"""Holds the common train and evaluation metrics."""

train: MetricModuleType | None = None
"""The training metrics."""
"""The exclusive training metrics."""

evaluation: MetricModuleType | None = None
"""The evaluation metrics."""
"""The exclusive evaluation metrics."""

@property
def training_metrics(self) -> MetricModuleType | None:
Expand All @@ -38,7 +38,7 @@ def _join_with_common(self, metrics: MetricModuleType | None) -> MetricModuleTyp
metrics: The metrics to join.
Returns:
The resulted metrics after joining with common with no duplicates.
The resulted metrics after joining with the common ones.
"""
if metrics is None or self.common is None:
return self.common or metrics
Expand Down

0 comments on commit c30aa1a

Please sign in to comment.