MetricFunctionSignature

class MetricFunctionSignature(value)[source]

Bases: str, enum.Enum

Enum for different metric function signatures.

Inherited-members

Attributes

array_to_scalar

function should expect arrays of y_pred and y_true with length n_timestamps and return scalar

matrix_to_array

function should expect matrices of y_pred and y_true with shape (n_timestamps, n_segments) and return vector of length n_segments

array_to_scalar = 'array_to_scalar'

function should expect arrays of y_pred and y_true with length n_timestamps and return scalar

matrix_to_array = 'matrix_to_array'

function should expect matrices of y_pred and y_true with shape (n_timestamps, n_segments) and return vector of length n_segments