scikit-learn/scikit-learn — pull request #1682 by aflag (2013-02-15 16:58:20+00:00)
Title: MiniBatchKMeans fails to reassign centers in some situations

Sometimes to_reassign has only False values, if that's the case the function
fails. This patch makes it so no reassignment is done in that case.

The patch seems to work here, but maybe to_reassign shouldn't ever be only
False for some reason and there's a bug elsewhere. I hope a more knowledgeble
person can look this over.