Repository: spark Updated Branches: refs/heads/branch-1.5 a33fd737c -> 0512960fc
[SPARK-11581][DOCS] Example mllib code in documentation incorrectly computes MSE Author: Bharat Lal <bharat.i...@gmail.com> Closes #9560 from bharatl/SPARK-11581. (cherry picked from commit 860ea0d386b5fbbe26bf2954f402a9a73ad37edc) Signed-off-by: Joseph K. Bradley <jos...@databricks.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/0512960f Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/0512960f Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/0512960f Branch: refs/heads/branch-1.5 Commit: 0512960fc7e9a5b6c2e40e17ce50aaba07f31125 Parents: a33fd73 Author: Bharat Lal <bharat.i...@gmail.com> Authored: Mon Nov 9 11:33:01 2015 -0800 Committer: Joseph K. Bradley <jos...@databricks.com> Committed: Mon Nov 9 11:34:13 2015 -0800 ---------------------------------------------------------------------- docs/mllib-decision-tree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/0512960f/docs/mllib-decision-tree.md ---------------------------------------------------------------------- diff --git a/docs/mllib-decision-tree.md b/docs/mllib-decision-tree.md index c1d0f8a..dfcc413 100644 --- a/docs/mllib-decision-tree.md +++ b/docs/mllib-decision-tree.md @@ -430,7 +430,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()); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org