Skip to content
Snippets Groups Projects
Commit 860ea0d3 authored by Bharat Lal's avatar Bharat Lal Committed by Joseph K. Bradley
Browse files

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

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

Closes #9560 from bharatl/SPARK-11581.
parent 874cd66d
No related branches found
No related tags found
No related merge requests found
......@@ -439,7 +439,7 @@ Double testMSE =
public Double call(Double a, Double b) {
return a + b;
}
}) / data.count();
}) / testData.count();
System.out.println("Test Mean Squared Error: " + testMSE);
System.out.println("Learned regression tree model:\n" + model.toDebugString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment