Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2018/iii/paper-218/2/c/solution

Choose a candidate grid of . For each candidate and each , fit the soft-margin support vector machine to all observations except , keeping exactly the same in the unnormalized sum objective. Let be its fitted score. Use a fixed rule for assigning a label when the score is zero. The binary misclassification estimate from Leave-one-out cross-validation is
Choose a minimizing candidate, break tuning ties by a predetermined rule, and refit on all observations. Any estimated preprocessing must also be fitted inside each training fold to avoid data leakage. If a normalized average-loss parameterization is used instead, translate its parameter so that the same is retained when the sample size decreases.

New to topics? Read the docs here!