scores

silk_ml.scores.ls_score(y, y_predicted)[source]

Score that punishes the false negative values, that goes from -1 to 1

Parameters
  • y (list) – 1d array-like, or label indicator array / sparse matrix ground truth (correct) labels.

  • y_predicted (list) – 1d array-like, or label indicator array / sparse matrix predicted labels, as returned by a classifier.

Returns

A score between -1 and 1 that indicates the correctness of the classification

Return type

float