title: Clustering values by their proximity in python (machine learning?)
body: <p>I have an algorithm that is running on a set of objects. This algorithm produces a score value that dictates the differences between the elements in the set.</p>
  
  <p>The sorted output is something like this:</p>
  
  <p>[1,1,5,6,1,5,10,22,23,23,50,51,51,52,100,112,130,500,512,600,12000,12230]</p>
  
  <p>If you lay these values down on a spreadsheet you see that they make up groups</p>
  
  <p>[1,1,5,6,1,5] [10,22,23,23] [50,51,51,52] [100,112,130] [500,512,600] [12000,12230]</p>
  
  <p>Is there a way to programatically get those groupings?</p>
  
  <p>Maybe some clustering algorithm using a machine learning library? Or am I overthinking this?</p>
  
  <p>I've looked at scikit but their examples are way too advanced for my problem...</p>