Title: | Collection of Model Evaluation Measure Functions |
---|---|
Description: | Provides Some of the most important evaluation measures for evaluating a model. Just by giving the real and predicted class, measures such as accuracy, sensitivity, specificity, ppv, npv, fmeasure, mcc and ... will be returned. |
Authors: | Babak Khorsand [aut, cre], Javad Zahiri [ths], Abdorreza Savadi [ths] |
Maintainer: | Babak Khorsand <[email protected]> |
License: | GPL |
Version: | 1.1.0 |
Built: | 2024-11-15 03:19:47 UTC |
Source: | https://github.com/cran/EvaluationMeasures |
Accuracy of prediction
EvaluationMeasures.Accuracy(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.Accuracy(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Accuracy is What fraction of our prediction is true.
By getting the predicted and real values or number of TP,TN,FP,FN return the accuaracy of model
Accuracy
Babak Khorsand
EvaluationMeasures.Accuracy(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.Accuracy(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
DOR of prediction
EvaluationMeasures.DOR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.DOR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Diaognastic odds Ratio is the ratio of Positive Likelihood Ratio by Negative Likelihood Ratio
By getting the predicted and real values or number of TP,TN,FP,FN return the Diaognastic odds Ratio of model
DOR
Babak Khorsand
EvaluationMeasures.DOR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.DOR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
F1Score of prediction
EvaluationMeasures.F1Score(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.F1Score(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
F1Score is Harmonic mean of precision and recall.
By getting the predicted and real values or number of TP,TN,FP,FN return the F1Score or F1Measure of model
F1Score
Babak Khorsand
EvaluationMeasures.F1Score(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.F1Score(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
FallOut of prediction
EvaluationMeasures.FallOut(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.FallOut(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Fall out is Poportional of negatives that predict as positive.
By getting the predicted and real values or number of TP,TN,FP,FN return the Fall out or False Positive Rate of model
FallOut
Babak Khorsand
EvaluationMeasures.FallOut(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.FallOut(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
FBMeasure of prediction
EvaluationMeasures.FBMeasure(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL, B = 1)
EvaluationMeasures.FBMeasure(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL, B = 1)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
B |
Weight of FMeasure |
FBMeasure is weighted FMeasure.
By getting the predicted and real values or number of TP,TN,FP,FN return the FBMeasure of model
FBMeasure
Babak Khorsand
EvaluationMeasures.FBMeasure(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0),B=3)
EvaluationMeasures.FBMeasure(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0),B=3)
FDR of prediction
EvaluationMeasures.FDR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.FDR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
False Discovery Rate is What fraction of positive predicted are real negative.
By getting the predicted and real values or number of TP,TN,FP,FN return the False Discovery Rate of model
FDR
Babak Khorsand
EvaluationMeasures.FDR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.FDR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
FMeasure of prediction
EvaluationMeasures.FMeasure(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.FMeasure(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
FMeasure is Harmonic mean of precision and recall.
By getting the predicted and real values or number of TP,TN,FP,FN return the FMeasure or F1Score of model
FMeasure
Babak Khorsand
EvaluationMeasures.FMeasure(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.FMeasure(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
FNR of prediction
EvaluationMeasures.FNR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.FNR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
False Negative Rate is Proportional of positives that predict as negative .
By getting the predicted and real values or number of TP,TN,FP,FN return the Miss Rate or False Negative Rate of model
FNR
Babak Khorsand
EvaluationMeasures.FNR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.FNR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
FOR of prediction
EvaluationMeasures.FOR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.FOR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
False Ommision Rate is What fraction of negative predicted are real positive.
By getting the predicted and real values or number of TP,TN,FP,FN return the False Omission Rate of model
FOR
Babak Khorsand
EvaluationMeasures.FOR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.FOR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
FPR of prediction
EvaluationMeasures.FPR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.FPR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
False Positive Rate is Poportional of negatives that predict as positive.
By getting the predicted and real values or number of TP,TN,FP,FN return the Fall out or False Positive Rate of model
FPR
Babak Khorsand
EvaluationMeasures.FPR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.FPR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
MCC of prediction
EvaluationMeasures.MCC(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.MCC(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Matthews Correlation Coefficient is correlation coefficient between real and predicted.
Positive One means perfect prediction,Zero means random prediction, Negative one means total disagreement.
By getting the predicted and real values or number of TP,TN,FP,FN return the Matthews Correlation Coefficient of model
MCC
Babak Khorsand
EvaluationMeasures.MCC(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.MCC(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
MissRate of prediction
EvaluationMeasures.MissRate(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.MissRate(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Miss Rate is Proportional of positives that predict as negative .
By getting the predicted and real values or number of TP,TN,FP,FN return the Miss Rate or False Negative Rate of model
MissRate
Babak Khorsand
EvaluationMeasures.MissRate(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.MissRate(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
NLR of prediction
EvaluationMeasures.NLR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.NLR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Negative Likelihood Ratio is (1-Sensitivity) / Specificity = PR(T-|D+)/PR(T-|D-)
By getting the predicted and real values or number of TP,TN,FP,FN return the Negative Likelihood Ratio of model
NLR
Babak Khorsand
EvaluationMeasures.NLR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.NLR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
NPV of prediction
EvaluationMeasures.NPV(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.NPV(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Negative Predicted Value is What fraction of negative predicted are real negative.
By getting the predicted and real values or number of TP,TN,FP,FN return the Negative Predicted Value of model
NPV
Babak Khorsand
EvaluationMeasures.NPV(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.NPV(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
PLR of prediction
EvaluationMeasures.PLR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.PLR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Positive Likelihood Ratio is Sensitivity / (1-Specificity) = PR(T+|D+)/PR(T+|D-)
By getting the predicted and real values or number of TP,TN,FP,FN return the Positive Likelihood Ratio of model
PLR
Babak Khorsand
EvaluationMeasures.PLR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.PLR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
PPV of prediction
EvaluationMeasures.PPV(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.PPV(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Positive Predictive Value is What fraction of positive predicted are real positive.
By getting the predicted and real values or number of TP,TN,FP,FN return the Precision or Positive Predicted Value of model
PPV
Babak Khorsand
EvaluationMeasures.PPV(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.PPV(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
Precision of prediction
EvaluationMeasures.Precision(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.Precision(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Precision is What fraction of positive predicted are real positive.
By getting the predicted and real values or number of TP,TN,FP,FN return the Precision or Positive Predicted Value of model
Precision
Babak Khorsand
EvaluationMeasures.Precision(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.Precision(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
Recall of prediction
EvaluationMeasures.Recall(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.Recall(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Recall is Proportional of positives that are correctly identified
By getting the predicted and real values or number of TP,TN,FP,FN return the True Positive Rate or Sensitivity or Recall of model
Recall
Babak Khorsand
EvaluationMeasures.Recall(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.Recall(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
Sensitivity of prediction
EvaluationMeasures.Sensitivity(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.Sensitivity(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Sensitivity is Proportional of positives that are correctly identified
By getting the predicted and real values or number of TP,TN,FP,FN return the Sensitivity or Recall or True Positive Rate of model
Sensitivity
Babak Khorsand
EvaluationMeasures.Sensitivity(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.Sensitivity(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
Specificity of prediction
EvaluationMeasures.Specificity(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.Specificity(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
Specificity is Proportional of negatives that are correctly identified
By getting the predicted and real values or number of TP,TN,FP,FN return the Specificity or True Negative Rate of model
Specificity
Babak Khorsand
EvaluationMeasures.Specificity(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.Specificity(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
Specify the number of TP,TN,FP,FN
EvaluationMeasures.table(Real, Predicted, Positive = 1)
EvaluationMeasures.table(Real, Predicted, Positive = 1)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
By getting the predicted values and real values calulate the number of True positive samples, False Negative, False Positive and True Negative
TP,TN,FP,FN
Babak Khorsand
EvaluationMeasures.table(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,0,0,0))
EvaluationMeasures.table(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,0,0,0))
TNR of prediction
EvaluationMeasures.TNR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.TNR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
True Negative Rate is Proportional of negatives that are correctly identified
By getting the predicted and real values or number of TP,TN,FP,FN return the Specificity or True Negative Rate of model
TNR
Babak Khorsand
EvaluationMeasures.TNR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.TNR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
TPR of prediction
EvaluationMeasures.TPR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
EvaluationMeasures.TPR(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Real |
Real binary values of the class |
Predicted |
Predicted binary values of the class |
Positive |
Consider 1 label as Positive Class unless changing this parameter to 0 |
TP |
Number of True Positives. Number of 1 in real which is 1 in predicted. |
TN |
Number of True Negatives. Number of 0 in real which is 0 in predicted. |
FP |
Number of False Positives. Number of 0 in real which is 1 in predicted. |
FN |
Number of False Negatives. Number of 1 in real which is 0 in predicted. |
True Positive Rate is Proportional of positives that are correctly identified
By getting the predicted and real values or number of TP,TN,FP,FN return the True Positive Rate or Sensitivity or Recall of model
TPR
Babak Khorsand
EvaluationMeasures.TPR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
EvaluationMeasures.TPR(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))