Skip to content

Commit

Permalink
Use singular
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Oct 23, 2024
1 parent 843b614 commit b4150bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apebench/_base_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from ._corrected_stepper import CorrectedStepper
from ._extensions import arch_extensions
from .components import metrics_dict
from .components import metric_dict


class BaseScenario(eqx.Module, ABC):
Expand Down Expand Up @@ -822,7 +822,7 @@ def perform_tests(
for metric_config in metrics:
metric_args = metric_config.split(";")
metric_name = metric_args[0]
metric_constructor = metrics_dict[metric_name]
metric_constructor = metric_dict[metric_name]
metric_fn = metric_constructor(metric_config)
results[metric_config] = metric_fn

Expand Down
4 changes: 2 additions & 2 deletions apebench/components/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from ._metrics import metrics_dict
from ._metrics import metric_dict

__all__ = ["metrics_dict"]
__all__ = ["metric_dict"]
2 changes: 1 addition & 1 deletion apebench/components/_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import exponax as ex
from jaxtyping import Array, Float

metrics_dict: Dict[
metric_dict: Dict[
str,
Callable[
[
Expand Down

0 comments on commit b4150bf

Please sign in to comment.