accuracy
Description
Given an Observable
of ground-truth labels and predictions, the accuracy operator returns the accuracy (trueness) of the predicted labels.
API
Since
0.5
Parameters
None
Options
initialState: Object {truePositives: Number, falsePositives: Number, trueNegatives: Number, falseNegatives: Number}
: Sets a warm start value so that the calculation can continue from a non-zero starting point (instead of a blank state).truePositives: Number
is a count of the true positivesfalsePositives: Number
is a count of the false positivestrueNegatives: Number
is a count of the true negativesfalseNegatives Number
is a count of the false negatives
Returns
Number
. (The current accuracy of the Observable
.)
Examples
Last updated