ContentsChapter 12 · Practice4 of 4

12.4

Mixed problems 4

In this chapter
  1. 12.1Mixed problems 1
  2. 12.2Mixed problems 2
  3. 12.3Mixed problems 3
  4. 12.4Mixed problems 4
Exercise
A logistic regression model uses z=wx+bz=wx+b and p=σ(z)p=\sigma(z) Start at w=0.5w=0.5 and b=−1b=-1 and train on one example: x=2x=2 y=1y=1 For binary cross-entropy, the loss gradient with respect to the score is p−yp-y Give pp the gradients for ww and bb and then the new ww and bb after one gradient descent step with learning rate 0.20.2 in that order.
Exercise
A network has hidden activations h1=max⁡(0,x−1)h_1=\max(0,x-1) and h2=max⁡(0,1−x)h_2=\max(0,1-x) Its output is 2h1+h22h_1+h_2 Give the output for x=0x=0 then for x=3x=3
Exercise
A Gaussian process has prior variance 1 at both a training input and a new input. Their prior covariance is 0.50.5 and the observation noise variance is 0.250.25 Give the posterior variance at the new input for the latent function, then for a new noisy observation there, as decimals.
Recall
In Bayesian linear regression, why can two predictions be correlated even when the observation noise is independent?