Review

10 questions from across the course. Answer as often as you like.

1 of 10

From Clustering with k-means

With ten starts for each k, inertia_, the total squared distance, prints 684, 340, 187, 148, 114, 94 for 1 to 6 groups. How many groups do you keep?

2 of 10

From Linear regression

On new penguins, a line that guesses the mass is off by 317 grams on average. What do you need beside it, to say whether it's a good model?

3 of 10

From Thresholds, ROC and PR curves

A missed yes costs the bank as much as ten wasted calls. Where should its line go, on the model's chance of a yes?

4 of 10

From Feature importance and SHAP

Shuffled on the calls kept aside, the phone column makes the bank's score fall the most: the model depends on it most. Should the bank now call everyone on a cell phone, to get more yeses?

5 of 10

From Overfitting and regularization

A model misses its training set by 150 grams, and its validation set by 900 grams. What is wrong with it, and what do you change?

6 of 10

From Tabular foundation models

Table one has 1,500 rows. Table two has 500,000 rows, and each answer must come back at once. Which model do you try first on each?

7 of 10

From Data leakage

A shop's sales come in date order. With train_test_split(X, y, test_size=0.2) the model scores 0.80. With shuffle=False added, it scores 0.65. Which score do you trust for next month's sales?

8 of 10

From Drift

An input has three bars. In the training months: student 0.01, retired 0.04, any other job 0.95. This month: student 0.15, retired 0.10, any other job 0.75. What is the share that moved?

9 of 10

From Cross-validation and tuning

On the same five folds, a penalty of 0.1 averages 0.8523, a penalty of 1 averages 0.8525, and 100 averages 0.780. Fold by fold, 1 beats 0.1 on two folds and loses on three. 100 is lower on every fold. What do you conclude?

10 of 10

From k-nearest neighbors

A table has each person's age in years, from 20 to 80, and income in dollars, from 10,000 to 200,000. Measured as they are, which column decides who the nearest neighbors are?