Back to the lessonPreparing the printout…

Fundamental of Machine Learning · Module 3: Model Evaluation and Optimization

End-of-Course Knowledge Check

[markdown] content available only on the platform

[markdown] content available only on the platform

Flashcards · End-of-Course Knowledge Check

Min-max normalisation — Rescales a value as (x - min) / (max - min), mapping the column into the range 0 to 1.

min 0, max 50: 20 -> 0.4

Z-score standardisation — Rescales a value as (x - mean) / standard deviation.

mean 100, sd 15: 130 -> 2.0

Nominal feature — A categorical feature whose values have no natural order.

city: Hanoi, Da Nang, Hue

Ordinal feature — A categorical feature whose values have a natural order.

education: high school < bachelor < master

One-hot encoding — Replaces a nominal column with k distinct values by k binary columns.

3 cities -> 3 columns of 0/1.

Fit scaler on train only — Learn scaling statistics from the training set and only transform the test set, to avoid leakage.

scaler.fit_transform(x_train); scaler.transform(x_test)

Gini impurity — 1 minus the sum of squared class proportions; 0 = pure node, 0.5 = most mixed for two classes.

3 Yes, 1 No -> 0.375

RMSE — The square root of the mean squared error, in the same unit as the target.

Errors +1, -2, +2 -> RMSE 1.73

F1 score — Harmonic mean of precision and recall: 2PR / (P + R).

P 0.8, R 0.67 -> F1 0.73

Fundamental of Machine Learning · End-of-Course Knowledge Check · printed on November 21, 2026