Search for question
Question

- The precision of a class is defined as the fraction of points correctly predicted for that class, compare

d to all points predicted for that class

- The recall of a class is defined as the fraction of points correctly predicted for that class, compared to

all points belonging to that class

Given y pred and y_true, vectors of predictions and ground truth, respectively, for a test set of 10 points.

y_pred: [B C AA ABC C]

y_true: [C B A A BBC AC]

What are the precision and recall for class A? All answers are given in the format (precision, recall).

(a) (1/3, 1/2) X

(b) (1/2, 1/3)

(c) (1/3, 2/3)

Ⓒ (d) (1/2, 1/2)

(e) (1/2, 2/3)

(f) None of the other answers are correct

O(g) (2/3, 1/2)

(h) (2/3, 1/3)

Fig: 1