li><li><a href="#3">LR L1</a></li><li><a href="#4">LR L2 (no kernel)</a></li></ul></div><pre class="codeinput">loadData(<span class="string">'crabs'</span>);
</pre><h2>SVM<a name="2"></a></h2><pre class="codeinput">gammas = logspace(-2, 2, 30);
Cvals  = logspace(-1, 3.5, 30);
SVMmodel = svmFit(Xtrain, ytrain, <span class="string">'kernel'</span>, <span class="string">'rbf'</span>, <span class="keyword">...</span>
    <span class="string">'C'</span>, Cvals, <span class="string">'kernelParam'</span>, gammas);