 <dt><code>$fit()</code></dt>
<dd><p>trains the knn model and stores the test prediction</p></dd>

    <dt><code>$predict()</code></dt>
<dd><p>returns predictions</p></dd>


</dl></div>
    <div id="arguments">
    <h2>Arguments</h2>
    

<dl><dt>k</dt>
<dd><p>number of neighbours to predict</p></dd>

    <dt>prob</dt>
<dd><p>if probability should be computed, default=FALSE</p></dd>

    <dt>algorithm</dt>
<dd><p>algorithm used to train the model, possible values are 'kd_tree','cover_tree','brute'</p></dd>