2>Contents</h2><div><ul><li><a href="#1">Setup data</a></li><li><a href="#2">Fit</a></li><li><a href="#3">Plot</a></li></ul></div><h2>Setup data<a name="1"></a></h2><pre class="codeinput"><span class="comment">% This file is from pmtk3.googlecode.com</span>

setSeed(0);
binary     = true;
keepSparse = false;
Ntest      = 1000;

<span class="keyword">if</span> 1
    Ntrain  = 1000;
    Kvalues = [2, 10];
<span class="keyword">else</span>
    Ntrain  = 1000;
    Kvalues = 2:15;
<span class="keyword">end</span