Linear regression and logistic classification are the final layers of models.
What’s the difference between the two?
At what probability do you decide that a class is present?
If anyone uncovers a pit or digs one and fails to cover it and an ox or a donkey falls into it, the one who opened the pit must pay the owner for the loss and take the dead animal in exchange.
If anyone’s bull injures someone else’s bull and it dies, the two parties are to sell the live one and divide both the money and the dead animal equally. However, if it was known that the bull had the habit of goring, yet the owner did not keep it penned up, the owner must pay, animal for animal, and take the dead animal in exchange.
Exodus 21:33-36 (NIV)
Which of the following is a regression in the sense we’ve been using? (A) logistic regression, (B) a decision tree predicting a number, (C) finding the slope of the line tangent to the loss function, (D) taking the average of the log of a probability
When you fine-tune a model, you can (A) replace the “body”, (B) replace the “head”.
T/F: you need to set a decision threshold before training a model.
Changing the decision threshold affects (A) training loss, (B) validation loss, (C) false positive rate, (D) the dimensionality of the last linear layer.
Suppose the input to the last linear layer is a 512-dimensional vector. Describe the shape of the weight matrix and output vector for (1) predicting the vertical position of the nose in a face, (2) labeling an image as blurry vs focused, and (3) labeling an image as A, B, or C.
How much does a change in each input affect the output?
Consider plotting the loss as a function of each parameter. What’s the slope of that plot at the current value?
Notation: x_grad means “the gradient of the loss with respect to x”, or \(\frac{\partial L}{\partial x}\).
resid_grad? (the gradient of the loss with respect to the residuals)b_grad? (the gradient of the loss with respect to the intercept)resid_grad is already computed!Suppose you carefully study past exams.
When the question includes the letter “m”, the answer is always “B”.