S14 Machine learning · Practice
Problem set 6: kernels, SVMs, Gaussian processes and mixtures
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 15 kinds solid
Check
Inputs 0.5 apart under a Gaussian kernel of width 0.7; a polynomial kernel of degree 3 on 30 inputs.
(a)
Gaussian kernel value?
(b)
Squared feature-space distance?
(c)
Polynomial feature count?
Check
x = (1, 0.5) and z = (2.5, 1); a Gram matrix for 20000 examples.
(a)
?
(b)
Gram matrix size in gigabytes (doubles)?
Check
Kernel ridge regression on two points: targets 1 and −1, off-diagonal kernel 0.8, unit diagonal, λ = 0.4.
(a)
Coefficient ?
(b)
Coefficient ?
(c)
Prediction at the second training point?
Check
A linear SVM with w = (0.5, 1.3); (2, 0.3) is a support vector labeled 1.
(a)
Margin?
(b)
Bias?
Check
A point with target 1 and output −0.6; a soft-margin SVM with = 30, C = 5, total slack 1.5.
(a)
Hinge loss?
(b)
Logistic loss in bits?
(c)
Soft-margin objective?
Check
A kernel SVM with support vectors (+1, multiplier 0.4, kernel 0.3) and (−1, multiplier 1.8, kernel 0.7), bias −0.2; a two-point training set (1, 0.5) labeled +1 and (−1, −0.5) labeled −1.
(a)
Kernel SVM output?
(b)
Margin of the two-point SVM?
Check
A squared-exponential process with = 0.5 and ℓ = 0.5.
(a)
Covariance at separation 1.5?
(b)
Separation where the correlation falls to 0.6?
Check
A process with = 1, ℓ = 2 and noise variance 0.3 observes 0.8 at one point.
(a)
Posterior mean 0.3 away?
(b)
Posterior variance there?
(c)
Posterior variance at the observed point?
Check
One observation 0.4; two candidate models give it total variance 0.6 and 5.
(a)
Log marginal likelihood under the first?
(b)
How much higher is it than under the second?
Check
A mixture of unit-variance components at −1 and 1.5 with weights 0.7 and 1 − 0.7; a point at 1.
(a)
Responsibility of the first component?
(b)
Log-likelihood of the point?
Check
A component's responsibilities are 0.3, 0.2 and 0.5 for the points 1, 2 and 6, and zero for the other points of 5.
(a)
New mean?
(b)
New variance?
(c)
New mixing weight?
Check
Gaussian mixtures with 3 components in 3 dimensions.
(a)
Parameters with full covariances?
(b)
Parameters with diagonal covariances?
Check
Two training inputs are 1 apart under a Gaussian kernel of width 0.5.
(a)
What is the Gram matrix's smaller eigenvalue?
(b)
What is its condition number?
Check
A Gaussian process ( = 1, ℓ = 1, noise variance 0.2) observes −2 at both x = 0 and x = 2.
(a)
What does it predict halfway between?
(b)
What predictive variance does the function have there?
Check
Gaussian mixtures with diagonal covariances, 4 components in 3 dimensions, are compared by BIC on 100000 points.
(a)
How many free parameters does the mixture have?
(b)
How much more log-likelihood must one more component buy to be worth adding under BIC?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S14