The following are true labels and predicted labels for a test set:
True Predicted
1 1
0 0
1 1
0 0
1 1
1 0
0 1
0 1
1 1
1 1
What is the precision of the predictions?
Precision of predictions is given by total number of correct predictions divided by total number of predictions.
Note that a prediction is considered as correct prediction if true value is exactly the same as predicted value i.e. if true value is 1 and the corresponding predicted value is also 1 then that is considered as correct prediction and if true value is 0 and the corresponding predicted value is also 0 then that is considered as correct prediction.
Here total number of predictions is 10 and total number of correct predictions is 7.
precision of prediction= 7/10= 0.7
Hence the precision of prediction is 0.7
This answers your question. If you understood, please rate positively.
Get Answers For Free
Most questions answered within 1 hours.