[SPARK-11581][DOCS] Example mllib code in documentation incorrectly computes MSE

Author: Bharat Lal <bharat.iisc@gmail.com>

Closes #9560 from bharatl/SPARK-11581.
This commit is contained in:
Bharat Lal 2015-11-09 11:33:01 -08:00 committed by Joseph K. Bradley
parent 874cd66d4b
commit 860ea0d386

View file

@ -439,7 +439,7 @@ Double testMSE =
public Double call(Double a, Double b) { public Double call(Double a, Double b) {
return a + b; return a + b;
} }
}) / data.count(); }) / testData.count();
System.out.println("Test Mean Squared Error: " + testMSE); System.out.println("Test Mean Squared Error: " + testMSE);
System.out.println("Learned regression tree model:\n" + model.toDebugString()); System.out.println("Learned regression tree model:\n" + model.toDebugString());