module metrics.classification

Short summary

module lightmlboard.metrics.classification

Metrics about regressions.

source on GitHub

Functions

function truncated documentation
is_vector Tells if an array is a vector.
multi_label_jaccard Applies to a multi-label classification problem. Computes the average Jaccard index between two sequences of sets …
reshape Reshape the expected values and predictions.
roc_auc_score_macro Computes roc_auc_score with …
roc_auc_score_micro Computes roc_auc_score with …

Documentation

Metrics about regressions.

source on GitHub

lightmlboard.metrics.classification.is_vector(a)[source]

Tells if an array is a vector.

source on GitHub

lightmlboard.metrics.classification.multi_label_jaccard(exp, val, exc=True)[source]

Applies to a multi-label classification problem. Computes the average Jaccard index between two sequences of sets of labels (see Multi-label classification).

Parameters:
  • exp – list of tuple or list of set or filename or streams (comma separated values) or dict
  • val – list of tuple or list of set or filename or streams (comma separated values) or dict
  • exc – raises an exception if not enough submitted items
Returns:

score

E = \frac{1}{n} \sum_{i=1}^n \frac{|C_i \cap P_i|}{|C_i \cup P_i|}

source on GitHub

lightmlboard.metrics.classification.reshape(exp, val)[source]

Reshape the expected values and predictions.

source on GitHub

lightmlboard.metrics.classification.roc_auc_score_macro(exp, val)[source]

Computes roc_auc_score with average=’macro’.

source on GitHub

lightmlboard.metrics.classification.roc_auc_score_micro(exp, val)[source]

Computes roc_auc_score with average=’micro’.

source on GitHub