p">=</span> <span class="va"><a href="../reference/KNNTrainer.html">KNNTrainer</a></span><span class="op">$</span><span class="fu">new</span><span class="op">(</span>k<span class="op">=</span><span class="fl">1</span>, prob<span class="op">=</span><span class="cn">FALSE</span>, algorithm<span class="op">=</span><span class="cn">NULL</span>, type<span class="op">=</span><span class="st">"class"</span><span class="op">)</span></span>
<span><span class="va">bst</span><span class="op">$</span><span class="fu">f