module Roc: Biocaml_roctype confusion_matrix = private {
tp :int;
tn :int;
fp :int;
fn :int;
val make : pos:float Stream.t ->
neg:float Stream.t -> (float * confusion_matrix) Stream.tpos (resp. neg) of scores from positive (resp. negative) instances, make ~pos ~neg
builds an enum of confusion matrices by setting an decreasing acceptance threshold. The result has at
least one first value, which is the confusion matrix for an infinity threshold. The subsequent
thresholds are the values in pos and neg.val sensitivity : confusion_matrix -> floatval false_positive_rate : confusion_matrix -> floatval accuracy : confusion_matrix -> floatval specificity : confusion_matrix -> floatval positive_predictive_value : confusion_matrix -> floatval negative_predictive_value : confusion_matrix -> floatval false_discovery_rate : confusion_matrix -> floatval f1_score : confusion_matrix -> floatval auc : (float * float) Stream.t -> floatauc e computes the area above the X-axis and under the piecewise linear curve
passing through the points in e. Assumes that the points come with increasing
x-coordinate.