73747576777879808182
// LogisticRegressionModel model = lr.train(points.rdd()); LogisticRegressionModel model = LogisticRegressionWithSGD.train(points.rdd(), iterations, stepSize); System.out.print("Final w: " + model.weights()); System.exit(0); } }
// LogisticRegressionModel model = lr.train(points.rdd()); LogisticRegressionModel model = LogisticRegressionWithSGD.train(points.rdd(), iterations, stepSize); System.out.print("Final w: " + model.weights()); sc.stop(); } }