You are viewing a public preview
Sign in to save your progress, do assignments, join discussions and get feedback.
This quiz has 15 questions, 5 per module, so you can assess how well you have mastered the whole course. The passing score is 70%, you may retake it as many times as you like, and after each attempt you can see the explanations of the answers.
| Part | Content |
|---|---|
| Module 1 (5 questions) | Standardization, feature encoding, feature types, avoiding data leakage |
| Module 2 (5 questions) | Logistic regression, Gini, SVM, bootstrapping |
| Module 3 (5 questions) | Precision, Recall, F1, accuracy with imbalanced data, RMSE |
Calculation questions with numerical answers: round as the question requires. If you get a part wrong, go back to the units in that part and try again.
This is a self-check and does not replace the official final exam of the course.
By the end of this lesson you can:
Key idea: The self-check covers five ideas from each module; most questions are quick calculations or "which concept is this?", so practise the formulas and the definitions together.
The quiz has 15 questions, 5 per module. The passing score is 70%, you may retake it as many times as you like, and after each attempt you can see explanations. Round numerical answers as each question asks. It is a self-check and does not replace the official final exam. If you get a part wrong, go back to that part's units.
city column with Hanoi, Da Nang, Hue becomes 3 columns.transform on the test set.A mixed practice set with different numbers from the quiz, checked in Python.
import math
# Module 1: min-max and z-score
print((20 - 0) / (50 - 0), (130 - 100) / 15)
# Module 2: Gini of a node with 3 Yes and 1 No
p = [3 / 4, 1 / 4]
print(1 - sum(q ** 2 for q in p))
# Module 3: precision, recall, F1 with TP=20, FP=5, FN=10
tp, fp, fn = 20, 5, 10
P, R = tp / (tp + fp), tp / (tp + fn)
print(round(P, 2), round(R, 2), round(2 * P * R / (P + R), 2))
# Module 3: RMSE of errors +1, -2, +2
errors = [1, -2, 2]
print(round(math.sqrt(sum(e ** 2 for e in errors) / len(errors)), 2))
Expected output:
0.4 2.0
0.375
0.8 0.67 0.73
1.73
Step by step for the last two lines: P = 20 / 25 = 0.8 and R = 20 / 30 = 0.67, so F1 = 2 x 0.8 x 0.667 / 1.467 = 0.73. For RMSE, squares are 1, 4, 4, the mean is 3, and the square root of 3 is 1.73.
Flashcards · End-of-Course Knowledge Check
9 wordsRescales a value as (x - min) / (max - min), mapping the column into the range 0 to 1.
Rescales a value as (x - mean) / standard deviation.
A categorical feature whose values have no natural order.
A categorical feature whose values have a natural order.
Replaces a nominal column with k distinct values by k binary columns.
Learn scaling statistics from the training set and only transform the test set, to avoid leakage.
1 minus the sum of squared class proportions; 0 = pure node, 0.5 = most mixed for two classes.
The square root of the mean squared error, in the same unit as the target.
Harmonic mean of precision and recall: 2PR / (P + R).