package biocaml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=fae219e66db06f81f3fd7d9e44717ccf2d6d85701adb12004ab4ae6d3359dd2d
sha512=f6abd60dac2e02777be81ce3b5acdc0db23b3fa06731f5b2d0b32e6ecc9305fe64f407bbd95a3a9488b14d0a7ac7c41c73a7e18c329a8f18febfc8fd50eccbc6
doc/biocaml.unix/Biocaml_unix/Bin_pred/index.html
Module Biocaml_unix.Bin_pred
Source
Performance measurement of binary classifiers.
This module provides functions to compute various performance measurements of a binary classifier's prediction. Typically, binary classifiers output both a label and a score indicating a confidence level. A ROC curve represents the variation of sensitivity and specificity of the classifier as a function of a score threshold.
val confusion_matrix :
scores:float array ->
labels:bool array ->
threshold:float ->
confusion_matrix
confusion_matrix ~scores ~labels ~threshold
computes a confusion matrix from the classifier scores and example labels, based on a threshold. It assumes that example i
has score scores.(i)
and label labels.(i)
, that scores
and labels
have the same length and that a higher score means increased probability of a true
label.
same as sensitivity
same as positive_predictive_value
val performance_curve :
scores:float array ->
labels:bool array ->
(float * confusion_matrix) array
performance_curve ~scores ~labels
returns the series of confusion matrices obtained by varying the threshold from infinity
to neg_infinity
. Each confusion matrix comes with the corresponding threshold.
roc_curve ~scores ~labels
returns the ROC curve of the prediction, and the associated Area Under Curve (AUC)