MCC | R Documentation |
The Matthews correlation coefficient is used in machine learning as a measure of the quality of binary (two-class) classifications. It takes into account true and false positives and negatives and is generally regarded as a balanced measure which can be used even if the classes are of very different sizes. The MCC is in essence a correlation coefficient between the observed and predicted binary classifications; it returns a value between -1 and +1.
MCC = (TP × (TN - FP) × FN)/(√{(TP + FP) × (TP + FN) × (TN + FP) × (TN + FN)})
D2MCS::MeasureFunction
-> MCC
new()
Method for initializing the object arguments during runtime.
MCC$new(performance.output = NULL)
performance.output
An optional ConfMatrix
parameter
used as basis to compute the MCC
measure.
compute()
The function computes the MCC achieved by the M.L. model.
MCC$compute(performance.output = NULL)
performance.output
An optional ConfMatrix
parameter
to define the type of object used as basis to compute the MCC
measure.
This function is automatically invoke by the ClassificationOutput object.
A numeric vector of size 1 or NULL if an error occurred.
clone()
The objects of this class are cloneable with this method.
MCC$clone(deep = FALSE)
deep
Whether to make a deep clone.
MeasureFunction
, ClassificationOutput
,
ConfMatrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.