Skip to content
ML Academy

Recall block

Diagnostic

Today's recall block is the neural-network prerequisite check: 8 short items on matrix shapes, dot products, derivatives and the chain rule, logistic regression as a one-layer network, and overfitting and regularization. Work them by hand or in your head, without a framework, and rate your confidence honestly for each.

This is not a grade. It shows which prerequisites to revisit before Days 31-33: if shapes and derivatives are solid, go straight to the primers; if not, work the worked examples in the Day 31 deep dive and the Day 32 primer first. A confident wrong answer is more useful to the plan than a skipped item.

Your progress

0 / 8

0 of 8 answered. Results feed your evidence profile; they are a starting point, revised at the Week 2 review.

Deep learning and neural networksClassical ML and model selectionStatistics and probability

Sign in to record your diagnostic.

Question 1 · easy

A batch `X` has shape (64, 10): 64 flights, 10 features each. A dense layer with 32 units computes `H = X @ W + b`. What are the shapes of `W`, `b` and `H`?
Options

How confident are you? (optional, used for calibration)

Question 2 · easy

A single neuron has weights $w = (0.5, -1, 2)$ and bias $b = 0.4$. For input $x = (2, 3, 1)$, what is its pre-activation $z = w \cdot x + b$?

How confident are you? (optional, used for calibration)

Question 3 · medium

A fully connected network has 10 inputs, one hidden layer of 32 units and 1 output unit, with a bias in every unit. It is trained with batches of 64. How many trainable parameters does it have?
parameters

How confident are you? (optional, used for calibration)

Question 4 · hard

A one-weight model predicts $\hat y = w x$ with squared-error loss $L = (w x - y)^2$. With $x = 2$, $y = 3$ and current $w = 1$, take one gradient-descent step with learning rate 0.1. What is the new value of $w$?

How confident are you? (optional, used for calibration)

Question 5 · medium

Which neural network, trained how, is the same model as a logistic regression for "will this passenger be a no-show"?
Options

How confident are you? (optional, used for calibration)

Question 6 · medium

Why is binary cross-entropy (log loss) the standard training loss for a sigmoid output?
Options

How confident are you? (optional, used for calibration)

Question 7 · medium

Training loss falls steadily for 40 epochs. Validation loss falls until epoch 12, then rises steadily. What is happening, and what is a sound first intervention?
Options

How confident are you? (optional, used for calibration)

Question 8 · hard

An L2-regularized logistic regression predicts no-shows from two unscaled features: `distance_km` (200 to 10,000) and `is_holiday` (0 or 1). Across their observed ranges both shift the no-show odds by a similar amount. What happens as you increase the penalty strength?
Options

How confident are you? (optional, used for calibration)

Back to day 31