12 questions, 20 points (Parts A and B: 1 point/question; Parts C and D: 3 points/question), 30 minutes. Pass mark: 14/20 (70%). The solutions are for instructors only. A calculator and
code-labs/l2-m04(lab.checklist,lab.parse,lab.probes,lab.calibrate,lab.ops) are allowed. The judge in the lab is a simulation; every number in the questions is fictional data and does not describe a real model.
Part A - Multiple choice (1 point/question)
Q1. A HocVui Tutor criterion has these fields: no deterministic rule, no reference answer, not subjective, medium risk, 4000 items per week and 500 human labels. By the lab's checklist.recommend, the way to grade this criterion is:
- A. judge, because 500 human labels is far above the minimum of 50 labels needed to trust a judge
- B. human, because there is no rule, it is not subjective, and there is no answer to compare against
- C. judge+human, because 4000 items per week is too many for a person to read every item
- D. code, because the criterion is not subjective so it can be written as a deterministic function
Q2. Five pairs of answers (x and y) are graded by a pairwise judge in both orders. In the original order answer x is in slot A; in the swapped order answer y is in slot A. Each cell is the judge's raw output for that order.
| Pair | Original order | Swapped order |
|---|---|---|
| P1 | [[A]] |
[[B]] |
| P2 | [[B]] |
[[A]] |
| P3 | [[A]] |
[[A]] |
| P4 | [[C]] |
[[B]] |
| P5 | [[A]] |
Cả hai đều ổn. |
By the lab's both-orders rule (probes.both_orders), the numbers of pairs where x wins, y wins, tie and error are, respectively:
- A. 3, 1, 1, 0
- B. 2, 1, 1, 1
- C. 1, 1, 3, 0
- D. 1, 1, 2, 1
Q3. Six raw outputs of a pointwise judge are read with parse.rating:
Điểm: [[3]]Điểm: [[3]] ... tóm lại điểm là [[ 3 ]]Điểm: [[3]] (hoặc [[2]])Chưa đủ dữ kiện. [[?]]Rating: [[7]]Điểm 3 trên 5
The numbers of outputs that become an integer score, ERROR and UNKNOWN are, respectively:
- A. 2, 3, 1
- B. 3, 2, 1
- C. 2, 4, 0
- D. 3, 3, 0
Q4. The threshold sweep table on the dev set of a judge (the positive class is "PASS"):
| Threshold | kappa | False-accept rate |
|---|---|---|
| 2 | 1/5 | 9/10 |
| 3 | 11/20 | 2/5 |
| 4 | 7/10 | 3/10 |
| 5 | 31/50 | 1/10 |
Which threshold does the lab's rule (choose_threshold) choose with a false-accept ceiling of 3/10 (inclusive), and why?
- A. Threshold 2, because it is the first threshold in the sweep table and gives the lowest kappa
- B. Threshold 3, because it is the threshold that lowers the false-accept rate the most compared with the row above
- C. Threshold 4, because it has the highest kappa among the thresholds that do not exceed the ceiling
- D. Threshold 5, because it has the lowest false-accept rate and the rule prefers the stricter threshold
Q5. The baseline of a canary set at calibration time is 105/140 items matching the human label. Today the judge regrades the canary and 41/60 items match. With the lab's ops.canary (min_n = 30, tolerance 0.05, 95% Wilson interval), the status is:
- A. OK, because today's rate (about 0.68) is still within 0.10 of the baseline of 0.75
- B. WARN, because it dropped by more than the tolerance but today's 95% interval still reaches the baseline
- C. ALERT, because today's rate is already below the baseline by more than the 0.05 tolerance
- D. TOO_FEW, because 60 items is too few compared with the 120 items used for the baseline
Part B - True/False (1 point/question)
Q6. A judge is calibrated with the positive class "PASS" and Cohen's kappa is 0.5 on a confusion matrix. If the positive class is changed to "FAIL" (the items the judge fails and the human fails are the positives, the counts swap roles accordingly) and kappa is recomputed on the same items, kappa is still 0.5.
Q7. Two runs use exactly the same judge configuration (every key the same) but have different dataset fingerprints. ops.comparable still returns True for these two runs, because the judge did not change.
Q8. The judge passes 0 of the 12 items that the human failed (fp = 0, tn = 12). The upper bound of the 95% Wilson interval of the false-accept rate is then still greater than 0.2.
Part C - Short answer (3 points/question)
Q9. A judge is calibrated on 80 test items with the threshold chosen on dev. The positive class is "PASS": tp = 33, fp = 12, fn = 3, tn = 32. (a) Compute raw agreement, chance agreement and Cohen's kappa. (b) Compute the false-accept rate and the false-reject rate. (c) With a false-accept ceiling of 1/4 and a minimum kappa of 3/5, does the judge meet or fail each condition?
Q10. A grading scenario: 250 items, graded in both orders, repeated 2 times, prompt of 180 units and output of 25 units per call, with the lab's illustrative unit price (0.01 dollars per 1000 units). (a) Compute the number of calls and the total units. (b) Compute the cost by the lab's formula. (c) State one reason this number is not a real provider's bill.
Q11. A team chooses the judge's threshold and reports the false-accept rate on the same 120 labelled items: 3 of the 20 items the human failed are passed by the judge. (a) Why can the figure 3/20 be too optimistic? (b) Name two functions of lab.calibrate used to fix the process. (c) Compute the 95% Wilson interval of 3/20 and say whether that interval contains the ceiling of 1/5.
Part D - Scenario (3 points/question)
Q12. The HocVui team checks a pointwise judge (threshold 4, positive class "PASS") on 90 readable test items: tp = 40, fp = 9, fn = 5, tn = 36. The lab's release gate: n ≥ 80, false-accept rate ≤ 1/5, kappa ≥ 3/5, inclusive comparison on the point estimate. The judge is used as "the judge plus a person": the judge auto-passes the items it grades as pass, and a person reads every remaining item. (a) What result does the gate give, with the exact value of each condition? (b) How many items must a person read, and of the items the judge auto-passes, how many did the human fail? (c) Compute the 95% Wilson interval of the false-accept rate and say what this tells you about the gate rule.