forked from rohitg00/ai-engineering-from-scratch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.json
More file actions
67 lines (67 loc) · 2.93 KB
/
Copy pathquiz.json
File metadata and controls
67 lines (67 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[
{
"id": "eval-pre-1",
"stage": "pre",
"question": "Why should you never tune hyperparameters based on test set performance?",
"options": [
"The test set is too small for reliable estimates",
"Adjusting the model based on test results effectively trains on the test set, making reported performance meaningless",
"Hyperparameters cannot be changed after training",
"The test set always has different features than the training set"
],
"correct": 1,
"explanation": "Every time you adjust your model based on test performance, you leak test information into your modeling decisions. The test set must be used exactly once at the end for an unbiased estimate."
},
{
"id": "eval-pre-2",
"stage": "pre",
"question": "A dataset has 95% negative and 5% positive samples. A model predicts 'negative' for every sample. What is its accuracy?",
"options": [
"50%",
"5%",
"95%",
"0%"
],
"correct": 2,
"explanation": "Accuracy = correct predictions / total = 950/1000 = 95%. This shows why accuracy is misleading for imbalanced data -- a useless model looks great."
},
{
"id": "eval-post-1",
"stage": "post",
"question": "In K-fold cross-validation with K=5, how many times is each data point used for validation?",
"options": [
"5 times",
"Exactly once",
"It depends on the random seed",
"Never -- all data is used for training"
],
"correct": 1,
"explanation": "In K-fold CV, data is split into K equal folds. Each fold is used as the validation set exactly once while the remaining K-1 folds are used for training."
},
{
"id": "eval-post-2",
"stage": "post",
"question": "A learning curve shows training score = 0.95 and validation score = 0.60 that does not improve with more data. What should you try?",
"options": [
"Collect more training data",
"Use a simpler model or add regularization to reduce variance (overfitting)",
"Remove the validation set to give the model more training data",
"Increase the learning rate"
],
"correct": 1,
"explanation": "A large gap between training (high) and validation (low) scores is high variance (overfitting). The fix is a simpler model, more regularization, or techniques like dropout -- not more data if the gap persists."
},
{
"id": "eval-post-3",
"stage": "post",
"question": "AUC-ROC = 0.5 for a binary classifier. What does this indicate?",
"options": [
"The model perfectly separates the two classes",
"The model performs no better than random guessing at ranking positives above negatives",
"The model has 50% accuracy",
"The model has equal precision and recall"
],
"correct": 1,
"explanation": "AUC-ROC = 0.5 means the model's ranking of positive and negative examples is no better than random. AUC = 1.0 would be perfect separation. The metric is threshold-independent."
}
]