Created
August 10, 2012 11:55
-
-
Save remeniuk/3313776 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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