powered by
EvaluationMeasures.PPV(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
By getting the predicted and real values or number of TP,TN,FP,FN return the Precision or Positive Predicted Value of model
EvaluationMeasures.PPV(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
Run the code above in your browser using DataLab