Skip to content

Instantly share code, notes, and snippets.

@remeniuk
Created August 10, 2012 11:55
Show Gist options
  • Save remeniuk/3313776 to your computer and use it in GitHub Desktop.
Save remeniuk/3313776 to your computer and use it in GitHub Desktop.
// randomly selected cluster the will be passed as an input to K-means
val inputClustersPath = new Path("job/input-clusters")
val distanceMeasure = new EuclideanDistanceMeasure
println("Making random seeds...")
// build 30 initial random clusters/centroids
RandomSeedGenerator.buildRandom(conf, vectorsPath, inputClustersPath, 30, distanceMeasure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment