MetricSelection

class MetricSelection(metric: str, prefix: str | None = None, maximize: bool = True)[source]

Bases: object

The selection of the metric to monitor.

Attributes Summary

maximize

whether to maximize or minimize the metric

metric

the normalized metric name (as seen by the result tracker)

prefix

the metric prefix; if None, do not check prefix

Attributes Documentation

Parameters:
  • metric (str)

  • prefix (str | None)

  • maximize (bool)

maximize: bool = True

whether to maximize or minimize the metric

metric: str = <dataclasses._MISSING_TYPE object>

the normalized metric name (as seen by the result tracker)

prefix: str | None = None

the metric prefix; if None, do not check prefix