BinaryConfusionMatrix Type

Confusion matrix for binary classification

Record fields

Record Field Description

FN

Full Usage: FN

Field type: int

false negatives: amount of labels incorrectly predicted as negative

Field type: int

FP

Full Usage: FP

Field type: int

false positives: amount of labels incorrectly predicted as positive

Field type: int

TN

Full Usage: TN

Field type: int

true negatives: amount of labels correctly predicted as negative

Field type: int

TP

Full Usage: TP

Field type: int

true positives: amount of labels correctly predicted as positive

Field type: int

Static members

Static member Description

BinaryConfusionMatrix.create (tp, tn, fp, fn)

Full Usage: BinaryConfusionMatrix.create (tp, tn, fp, fn)

Parameters:
    tp : int
    tn : int
    fp : int
    fn : int

Returns: BinaryConfusionMatrix
tp : int
tn : int
fp : int
fn : int
Returns: BinaryConfusionMatrix

BinaryConfusionMatrix.ofPredictions (actual, predictions)

Full Usage: BinaryConfusionMatrix.ofPredictions (actual, predictions)

Parameters:
    actual : seq<bool>
    predictions : seq<bool>

Returns: BinaryConfusionMatrix
actual : seq<bool>
predictions : seq<bool>
Returns: BinaryConfusionMatrix

BinaryConfusionMatrix.ofPredictions (positiveLabel, actual, predictions)

Full Usage: BinaryConfusionMatrix.ofPredictions (positiveLabel, actual, predictions)

Parameters:
    positiveLabel : 'A
    actual : seq<'A>
    predictions : seq<'A>

Returns: BinaryConfusionMatrix
positiveLabel : 'A
actual : seq<'A>
predictions : seq<'A>
Returns: BinaryConfusionMatrix

BinaryConfusionMatrix.thresholdMap (actual, predictions)

Full Usage: BinaryConfusionMatrix.thresholdMap (actual, predictions)

Parameters:
    actual : seq<bool>
    predictions : seq<float>

Returns: (float * BinaryConfusionMatrix)[]
actual : seq<bool>
predictions : seq<float>
Returns: (float * BinaryConfusionMatrix)[]

BinaryConfusionMatrix.thresholdMap (actual, predictions, thresholds)

Full Usage: BinaryConfusionMatrix.thresholdMap (actual, predictions, thresholds)

Parameters:
    actual : seq<bool>
    predictions : seq<float>
    thresholds : seq<float>

Returns: (float * BinaryConfusionMatrix)[]
actual : seq<bool>
predictions : seq<float>
thresholds : seq<float>
Returns: (float * BinaryConfusionMatrix)[]