Prepare Data and Gathering Data

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Gathering Data & Preparing Data

Color Shape Apple or


Orange?
Red Round Conical Apple
Orange Round Orange

2
Model
Selection

Decide a learning type

3
Training
& testing

Done
4
Cross validation

• To know how the method will work


on data it wasn’t train on.

• 5-fold cross validation

5
Quality measurement
• True negative & False negative
• True positive & False positive

TN=1 FN=2

FP=3 TP=4

6
Quality measurement

TN = 1
FP = 3
FN = 2
TP = 4

• Precision : Pre= TP / (TP + FP) = 4 / 7


• Recall : Rec = TP / (TP + FN) = 4 / 6
• Accuracy : Acc = (TP + TN) / (TP + FP + TN + FN) = 5 / 10
• F-measurement : F1 = 2 * Pre*Rec / (Pre + Rec) = 8 / 13

7
Deep Learning

You might also like