API Reference

MetricParams

class monad.ui.config.MetricParams

Defines early stopping callback for the training.

from monad.ui.config import MetricParams

MetricParams(alias="PREC@k", metric_name="PrecisionAtK", kwargs={"k": 7})
Parameters

alias: str
Name assigned by the user to identify metric.


metric_name: str
Name of the metric from BaseModel Metrics or torchmetrics (list available here).


kwargs: dict[str, Any]
Default: dict
Arguments used to initialize metric, the same ones that should be used when initializing metric.