tempor.metrics.metric_typing module

Typing related to metrics.

tempor.metrics.metric_typing.MetricDirection

The direction of the metric that represents the optimization goal (the “good” direction): "minimize" or “maximize”.

alias of Literal[minimize, maximize]

tempor.metrics.metric_typing.EventArrayTimeArray

Type hint used in time-to-event metrics, a tuple of two numpy arrays: the event values array and the event times array.

alias of Tuple[ndarray, ndarray]