autointent.metrics.regexp.RegexpMetricFn#

class autointent.metrics.regexp.RegexpMetricFn#

Bases: Protocol

Protocol for regexp metrics.

__call__(y_true, y_pred)#

Calculate regexp metric.

Parameters:
  • y_true (autointent.metrics.custom_types.LABELS_VALUE_TYPE) – True values of labels

  • y_pred (autointent.metrics.custom_types.LABELS_VALUE_TYPE) – Predicted values of labels

Returns:

Score of the regexp metric

Return type:

float