Repository: spark Updated Branches: refs/heads/master 874cd66d4 -> 860ea0d38
[SPARK-11581][DOCS] Example mllib code in documentation incorrectly computes MSE Author: Bharat Lal <bharat.i...@gmail.com> Closes #9560 from bharatl/SPARK-11581. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/860ea0d3 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/860ea0d3 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/860ea0d3 Branch: refs/heads/master Commit: 860ea0d386b5fbbe26bf2954f402a9a73ad37edc Parents: 874cd66 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:33:01 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/860ea0d3/docs/mllib-decision-tree.md ---------------------------------------------------------------------- diff --git a/docs/mllib-decision-tree.md b/docs/mllib-decision-tree.md index f31c4f8..b5b454b 100644 --- a/docs/mllib-decision-tree.md +++ b/docs/mllib-decision-tree.md @@ -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()); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org