<p dir="auto">I have this data:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print(vars(features_norm))

{'_data': BlockManager
Items: Index(['SWdown', 'Tair', 'Qair', 'Rainf', 'Wind'], dtype='object')
Axis 1: &lt;class 'pandas.tseries.index.DatetimeIndex'&gt;
[2002-01-01 00:30:00, ..., 2006-01-01 00:00:00]
Length: 70128, Freq: 30T, Timezone: None
FloatBlock: [SWdown, Tair, Qair, Rainf, Wind], 5 x 70128, dtype: float64, 'is_copy': None, '_item_cache': {}, '_iloc': &lt;pandas.core.indexing._iLocIndexer object at 0x7f34e7c3bc10&gt;}"><pre class="notranslate"><code class="notranslate">print(vars(features_norm))

{'_data': BlockManager
Items: Index(['SWdown', 'Tair', 'Qair', 'Rainf', 'Wind'], dtype='object')
Axis 1: &lt;class 'pandas.tseries.index.DatetimeIndex'&gt;
[2002-01-01 00:30:00, ..., 2006-01-01 00:00:00]
Length: 70128, Freq: 30T, Timezone: None
FloatBlock: [SWdown, Tair, Qair, Rainf, Wind], 5 x 70128, dtype: float64, 'is_copy': None, '_item_cache': {}, '_iloc': &lt;pandas.core.indexing._iLocIndexer object at 0x7f34e7c3bc10&gt;}
</code></pre></div>
<p dir="auto">and when I run this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="db = sk.cluster.MeanShift().fit(np.array(features_norm))"><pre class="notranslate"><code class="notranslate">db = sk.cluster.MeanShift().fit(np.array(features_norm))
</code></pre></div>
<p dir="auto">My whole computer slows to a complete halt in a couple of seconds (too fast to kill python). I'm running IPython 1.1.0 on Python 3.3.2+ on Kubuntu Saucy 64-bit, on an 8 core intel, with 8Gb of RAM.</p>
<p dir="auto">Sorry for the somewhat useless bug-report, but I don't get any error messages before the thing freezes. If there is anything I can do to get more information (preferably without freezing my system), please let me know.</p>
<p dir="auto">Hi, this it my first bug report, so I'm not exactly sure how much information is usually required here.</p>
<p dir="auto">I've run the MeanShift algorithm on a cluster of approximately ~300,000 in size. It gives me an output of:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [user@host ~]$ python meanshifttest.py
Traceback (most recent call last):
  File &quot;meanshifttest.py&quot;, line 13, in &lt;module&gt;
    ms = MeanShift().fit(X)
  File &quot;/home/user/anaconda/lib/python2.7/site-packages/sklearn/cluster/mean_shift_.py&quot;, line 280, in fit
    cluster_all=self.cluster_all)
  File &quot;/home/user/anaconda/lib/python2.7/site-packages/sklearn/cluster/mean_shift_.py&quot;, line 99, in mean_shift"><pre class="notranslate"><code class="notranslate"> [user@host ~]$ python meanshifttest.py
Traceback (most recent call last):
  File "meanshifttest.py", line 13, in &lt;module&gt;
    ms = MeanShift().fit(X)
  File "/home/user/anaconda/lib/python2.7/site-packages/sklearn/cluster/mean_shift_.py", line 280, in fit
    cluster_all=self.cluster_all)
  File "/home/user/anaconda/lib/python2.7/site-packages/sklearn/cluster/mean_shift_.py", line 99, in mean_shift
</code></pre></div>
<p dir="auto">bandwidth = estimate_bandwidth(X)<br>
File "/home/user/anaconda/lib/python2.7/site-packages/sklearn/cluster/mean_shift_.py", line 45, in estimate_bandwidth<br>
d, _ = nbrs.kneighbors(X, return_distance=True)<br>
File "/home/user/anaconda/lib/python2.7/site-packages/sklearn/neighbors/base.py", line 313, in kneighbors<br>
return_distance=return_distance)<br>
File "binary_tree.pxi", line 1313, in sklearn.neighbors.kd_tree.BinaryTree.query (sklearn/neighbors/kd_tree.c:10007)<br>
File "binary_tree.pxi", line 595, in sklearn.neighbors.kd_tree.NeighborsHeap.<strong>init</strong> (sklearn/neighbors/kd_tree.c:4709)<br>
MemoryError</p>
<p dir="auto">I was encouraged to file a bug report from my stackoverflow question (<a href="http://stackoverflow.com/questions/20104999/python-meanshift-memory-error/20116682?noredirect=1#comment30125531_20116682" rel="nofollow">http://stackoverflow.com/questions/20104999/python-meanshift-memory-error/20116682?noredirect=1#comment30125531_20116682</a>).</p>
<p dir="auto">~Austen</p>