constructor

src/index.js
constructor(prediction: any, target: any, options: any)
Parameters
prediction (any) The prediction matrix
target (any) The target matrix (values: truthy for same class, falsy for different class)
options (any)

Returns the area under the DET curve

getAUDC()

Returns the area under the ROC curve

getAURC()

getMeasure

src/index.js

Computes a measure from the prediction object.

Many measures are available and can be combined : To create a ROC curve, you need fpr and tpr To create a DET curve, you need fnr and fpr To create a Lift chart, you need rpp and lift

Possible measures are : threshold (Threshold), acc (Accuracy), err (Error rate), fpr (False positive rate), tpr (True positive rate), fnr (False negative rate), tnr (True negative rate), ppv (Positive predictive value), npv (Negative predictive value), pcfall (Prediction-conditioned fallout), pcmiss (Prediction-conditioned miss), lift (Lift value), rpp (Rate of positive predictions), rnp (Rate of negative predictions)

getMeasure(measure: any): any
Parameters
measure (any) The short name of the measure
Returns
any: [number]