<p><a href="https://github.com/sumedhghaisas" class="user-mention">@sumedhghaisas</a> <a href="https://github.com/rcurtin" class="user-mention">@rcurtin</a> </p>

<p>After a code review, I think we have this 2 options:</p>

<ul>
<li><p>Only add a comment to the docummentation of the method Search(Tree* queryTree, ...), mentioning that the queryTree's stats should be resetted before calling Search again with the same queryTree and a different reference dataset.</p></li>
<li><p>Modify the method Search(Tree* queryTree, ...), to reset all stats of the tree at the beginning. This could slow down the calculation a bit. For example, in NSModel, the class creates a new tree and then call Search. In that case, resetting the stats wouldn't be necessary, because the tree is new...</p></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/issues/672#issuecomment-223582071">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFDrmrglUKRMNbgJzkP8cBLj54duMks5qIC90gaJpZM4Itiy7">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFK8B6E6TdZfxAZeuBNQzDs1H94BBks5qIC90gaJpZM4Itiy7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/672#issuecomment-223582071"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>