title: How can I fix a MemoryError when executing scikit-learns silhouette score?
body: <p>I run a clustering algorithm and want to evaluate the result by using silhouette score in scikit-learn. But in the scikit-learn, it needs to calculate the distance matrix: distances = pairwise_distances(X, metric=metric, **kwds)</p>
  
  <p>Due to the fact that my data is order of 300K, and my memory is 2GB, and the result is out of memory. And I can not evaluate the clustering result.</p>
  
  <p>Does anyone know how to overcome this problem?</p>