7475767778798081828384
System.out.println("Cluster centers:"); for (Vector center : model.clusterCenters()) { System.out.println(" " + center); } double cost = model.computeCost(points.rdd()); System.out.println("Cost: " + cost); System.exit(0); } }
7273747576777879808182
System.out.println("Cluster centers:"); for (Vector center : model.clusterCenters()) { System.out.println(" " + center); } double cost = model.computeCost(points.rdd()); System.out.println("Cost: " + cost); sc.stop(); } }