<p>We should update the KMeans class so that the EmptyClusterPolicy and <em>only</em> the EmptyClusterPolicy controls what is done with empty clusters.  Two options I plan to implement are:</p>

<ul>
<li>"kill" the cluster by setting it to all DBL_MAX, so it's never used again</li>
<li>leave the cluster alone, by simply leaving the centroid in place; this is Erich's (@kno20) suggestion</li>
</ul>

<p>This comes out of the discussion for <a href="https://github.com/mlpack/mlpack/pull/592" class="issue-link js-issue-link" data-url="https://github.com/mlpack/mlpack/issues/592" data-id="143358633" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#592</a>.</p>

<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 or <a href="https://github.com/mlpack/mlpack/issues/595">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAb3q7OAGYE5W_sxz4EuBOl3TX-oks5pxK4WgaJpZM4H5JzU.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/595"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>