<p>Thanks for your patches. I feel very guilty for letting you do these trivial work like modifying code style. But I can't apply 0002-Remove-spaces-remove-unnecessary-semicolons.patch, git always failed when applying it. So I just remove two unnecessary semicolons manually. <br>
I do tests on iris.csv. scikit costs about 30 ms and mlpack costs 200 ms. After using unsafe_col, mlpack costs 140ms. I think the major cause is range search.<br>
In my implementation I use brute way to do range search. But scikit uses tree to do this.<br>
I do following changes in mean_shift_.py line 131 in scikit <br>
            #i_nbrs = nbrs.radius_neighbors([my_mean], bandwidth,<br>
            #                               return_distance=False)[0]<br>
            i_nbrs = []<br>
            for i in range(0, X.shape[0]) :<br>
                if (extmath.norm(my_mean - X[i]) &lt; bandwidth) :<br>
                    i_nbrs.append(i)<br>
With this brute approach, scikit costs 400ms.<br>
I go through RangeSearch in mlpack but it seems I can only do search with pre-determined querySet.<br>
How can I do search if I have a pre-determined referenceSet  but don't know the querySet ahead.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/388#issuecomment-87584301">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFHK6thRiTCSOtCIa7JA_SY5rAErIks5n6Ps0gaJpZM4DTzb1.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/pull/388#issuecomment-87584301"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>