Model Evaluation (2) Flashcards

(30 cards)

1
Q

Confusion Matrix

What types of predictions is a Confusion Matrix used to measure?

A

Applies to discrete answers, like Classification models (not continuous values)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Confusion Matrix

What is the Accuracy of a model?

A

The % of predictions that are correct (true positive and true negative)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Confusion Matrix

What is the Precision of a model?

A

How well does a model predict

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Confusion Matrix

What’s the ratio considered for Precision?

A

true positives vs. false positives

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Confusion Matrix

Formula for Precision?

A

true positives / (true positives + false positives)

Not important

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Confusion Matrix

What is invariant about Precision?

A

The model said ‘yes’, decide if it was right or not.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Confusion Matrix

What can you minimize by paying attention to Precision?

A

Minimize the number of false positives

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Confusion Matrix

Example of when high Precision is important?

A

Saying the defendant is guilty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Confusion Matrix

What is the Recall of a model?

A

Does the model say ‘yes’ when it should say ‘yes’?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Confusion Matrix

What’s the ratio considered for Recall?

A

True positives vs. false negatives

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Confusion Matrix

Formula for Recall?

A

True positives / (true positives + false negatives)

Not important

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Confusion Matrix

What is the invariant about Recall?

A

The actual value is ‘yes’. What did the model say?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Confusion Matrix

What can you minimize by paying attention to Recall?

A

The number of false negatives (times the model should have said ‘yes’, but didn’t)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Confusion Matrix

Example of when high Recall is important?

A

Predicting if you have cancer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Confusion Matrix

How can you optimize a model for both Precision and Recall?

A

You can’t, try to balance the model based on your needs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Confusion Matrix

How do you measure if your model is balanced?

A

“F1” is a metric that balances Precision and Recall when both are important.

17
Q

Confusion Matrix

What’s the formula for F1?

A

F1 = (precition * recall * 2) / (precision + recall)

Not important

18
Q

Confusion Matrix

What is Model Accuracy?

A

How well the model guesses correctly

19
Q

Confusion Matrix

Quantitatively, what is Accuracy?

A

Amount of true positives and true negatives compared to all answers

20
Q

Confusion Matrix

What metric is best when false positives are costly?

21
Q

Confusion Matrix

What metric is best when false negatives are costly?

22
Q

Errors in regression

What does MAE stand for?

A

Mean Absolute Error

23
Q

Errors in regression

What is Mean Absolute Error?

A

Distance from data-point to regression line

24
Q

Errors in regression

What does MAPE stand for?

A

Mean Absolute Percentage Error

25
# *Errors in regression* What is RMSE?
Root mean square error
26
# *Errors in regression* What is RMSE used for?
Tries to smooth-out the variance between errors
27
# *Errors in regression* What is "R squared"?
Explains variance in your model
28
# *Errors in regression* What does "R squared" near 1 mean?
The predictions of your model are good
29
# *Errors in regression* Which of MAE, MAPE, RMSE, and R^2 are used for continuous values vs. discrete?
All are for continuous only (curve-fitting)
30
# *Errors in regression* What does "model has RMSE of 5" mean?
On average, the model predicts a value 5 points off of the actual value