ALGORITHM 1
i. Accuracy
Accuracy=correct predictions/total prediction
=(65+70)/(65+80+90+70)
=135/305
=0.442623
ii. Precision
precision=TP/(TP+FP)
=65/(65+80)=65/145
=0.448276
iii. Recall
recall=TP/(TP+FN)
=65/(65+90)
=65/155
=0.4193548
ALGORITHM 2
i. Accuracy
Accuracy=correct predictions/total prediction
=(75+80)/(75+45+40+80)
=155/240
=0.64583
ii. Precision
precision=TP/(TP+FP)
=75/(75+45)
=75/120
=0.625
iii. Recall
recall=TP/(TP+FN)
=75/(75+40)
=75/115
=0.652173
Comments
Leave a comment