C4 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

accuracy is not a good measure in most cases of classification

A
classes are often unbalanced: high accuracy in one class might mean low accuracy in another class
--> use precision and recall
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

precision

A

what proportion of the assigned labels are correct? (for one class)

Precision = |A * T| / |A| = tp / (tp + fp)

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

recall

A

what proportion of true labels was assigned?

Recall = |A * T| / |T| = tp / (tp + fn)

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

F-score

A

average of precision and recall

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

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

what determines the quality of the classifier

A
  • difficulty of the task: more categories = more difficult
  • number of training items: more is better
  • richness of the representation: more informative features are better
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

analysis for classification

A

per-item evaluation: which are the most difficult items, one classifier may work better for one subset, another for another subset

per-category evaluation: what is the precision and recall per class (especially with class imbalance)

error analysis: confusion matrix

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

evaluation for regression

A

mean squared error:

  • difference between y_hat en y = error
  • square each error (bigger error more punished)
  • take the mean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

evaluation for rankings

A

option 1: proportion of correct answers at position 1

option 2: proportion of items that have the correct answer in the top n

option 3: the rank of the correct answer or the rank of the highest ranked relevant answer (multiple answers)

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