Evaluation of Machine Learning Algorithm
Once you have done a machine learning model for classification problem, we want to know the accuracy of prediction of the model. We can use accuracy, precision, recall and f1-score to show how good the model is.
Basic Terms
Positive(P): The ground truth is positive (e.g. it is an iPhone)
Negative(N): The ground truth is negative (e.g. it is not an iPhone)
True Positive(TP): The prediction is positive; The ground truth is positive.
False Positive(FP): The prediction is positive; The ground truth is negative.
True Negative(TN): The prediction is negative; The ground truth is negative.
False Negative(FN): The prediction is negative; The ground truth is positive.
Error
Proportion of all predictions that are incorrect. Error is