Jump to content

Supervised Learning: Difference between revisions

 
Line 3: Line 3:
==Metrics==
==Metrics==
===Precision and Recall===
===Precision and Recall===
[https://developers.google.com/machine-learning/crash-course/classification/precision-and-recall Google ML Crash Course Precision and Recall]
Precision is (# correct) / (# predictions) or (true positive) / (true positive + false positive).   
Precision is (# correct) / (# predictions) or (true positive) / (true positive + false positive).   
Recall is (# correct) / (# ground truth) or (true positive) / (true positive + false negative).
Recall is (# correct) / (# ground truth) or (true positive) / (true positive + false negative).
Line 22: Line 24:


====ROC Curve====
====ROC Curve====
[https://developers.google.com/machine-learning/crash-course/classification/roc-and-auc Google ML Crash Course ROC and AUC]
True Positive Rate (TPR) = (true positive) / (true positive + false negative). 
False Positive Rate (FPR) = (false positive) / (false positive + true negative). 
An ROC curve plots TPR vs FPR.