Computes the ratio of number of correct predictions to the total number of input samples.
D2MCS::MeasureFunction
-> Accuracy
new()
Method for initializing the object arguments during runtime.
Accuracy$new(performance.output = NULL)
performance.output
An optional ConfMatrix
used as
basis to compute the performance.
compute()
The function computes the Accuracy achieved by the M.L. model.
Accuracy$compute(performance.output = NULL)
performance.output
An optional ConfMatrix
parameter
to define the type of object used as basis to compute the
Accuracy measure.
This function is automatically invoke by the
ClassificationOutput
object.
clone()
The objects of this class are cloneable with this method.
Accuracy$clone(deep = FALSE)
deep
Whether to make a deep clone.
$$Accuracy = (Number Correct Predictions) / (Total Number of Predictions)$$
MeasureFunction
, ClassificationOutput
,
ConfMatrix
.