The one-hot target selects the observed-class probability.
One training trajectory, several snapshots
Validation-based early stopping
Review — Lecture 4
Why does a reactor model need information from smaller scales?
It cannot resolve every bubble interface, boundary layer and molecular process. Detailed investigations inform closures used at larger scales; the assumptions and uncertainty of those closures remain relevant.
What does the Eötvös number compare, and which length is used here?
Buoyancy relative to surface tension. We use the initial radius: \(Eo=\rho_l gR^2/\sigma\), following the light-gas convention of the reference study.
How does the Galilei number differ from a Reynolds number based on measured rise velocity?
It uses a gravitational velocity scale, \(\sqrt{gR}\), rather than the unknown rise velocity. Here \(Ga=\rho_l\sqrt{gR^3}/\mu_l\).
Why can we not directly use the paper’s hand-drawn boundaries as a classifier?
A picture does not provide an evaluable input–label function. Drawing boundaries also involves subjective judgment; a fitted model gives an explicit rule and quantitative criteria for comparing it with data.
Why do we take logarithms before min–max scaling?
The dimensionless inputs span wide ranges. Logarithms spread small values and compress large ones. Min–max scaling then sets a common range; neither transformation creates samples or guarantees uniform coverage.
Which samples determine the min–max scaling for the validation example?
Only training samples. The same extrema are applied to validation samples, which can consequently fall outside the training interval.
What defines the decision boundary of the linear binary model?
The zero-score line \(z=\mathbf w^{\mathsf T}\mathbf x=0\). The Heaviside rule predicts one for positive scores and zero otherwise.
How does the perceptron correct a wrong prediction?
It applies \(\mathbf w\leftarrow\mathbf w+\eta(y_i-\widehat y_i)\mathbf x_i\). A missed positive raises its score; a false positive lowers it. Correct predictions cause no update.
Does a perceptron correction always lower the total classification error?
No. It moves the current sample’s score in the desired direction but can change predictions at other samples. Finite convergence requires separable data with a positive margin.
What is the difference between the predicted class-one probability and the probability of the observed label?
The model predicts \(\widehat y_i=P_{\mathbf w}(Y=1\mid\mathbf x_i)\). The observed-label probability is \(\widehat y_i\) if the target is one and \(1-\widehat y_i\) if it is zero.
How do we turn a linear score into a probability?
We apply \(\sigma(z)=1/(1+\exp(-z))\). Its value is between zero and one for finite scores; its half-probability boundary is the zero-score line.
Why do likelihood and log-likelihood have the same maximizing weights?
The natural logarithm is strictly increasing. It preserves the ordering of positive likelihood values while turning the probability product into a sum.
How does binary cross entropy relate to maximum likelihood?
It is the negative log-likelihood averaged over samples. We minimize BCE instead of maximizing the likelihood product. A stable implementation evaluates the loss from scores.
Does zero training error imply finite maximum-likelihood weights in unregularized logistic regression?
No. For these separable samples, increasing the magnitude along a separating direction keeps improving the likelihood without a finite maximizing weight vector.
Why do two sigmoid component models allow a nonlinear combined boundary?
Their sigmoid outputs are nonlinear features for the next layer. Combining only their raw affine scores would still give an affine score and a straight boundary.
Why do we use one-hot targets for mutually exclusive classes?
They provide one entry per class, matching the predicted probability vector, without imposing a numerical distance between class identifiers. Integer targets can implement the same loss implicitly.
What properties make softmax suitable for K mutually exclusive classes?
Its components are positive and sum to one. Adding the same constant to all logits leaves them unchanged, and the largest logit has the largest probability.
How is the categorical prediction obtained from softmax probabilities?
We select the class with the largest probability, using a stated tie convention. With more than two classes, the winning probability need not exceed one half.
How can validation cross entropy worsen while the number of validation errors stays unchanged?
Cross entropy also measures confidence in the observed labels. A model can become more confidently wrong without changing which class wins.
What state does early stopping return, and why is validation not an independent test score?
It restores the checkpoint selected by validation loss, rather than the last state. Because validation guided model selection, it does not provide an independent final test score.