Repository: spark Updated Branches: refs/heads/branch-1.4 4f98014b9 -> 72ab06e8a
[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/72ab06e8 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/72ab06e8 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/72ab06e8 Branch: refs/heads/branch-1.4 Commit: 72ab06e8a512a267f5779c6759b6e370c15b9a87 Parents: 4f98014 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:36 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/72ab06e8/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