diff options
author | Bharat Lal <bharat.iisc@gmail.com> | 2015-11-09 11:33:01 -0800 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2015-11-09 11:33:01 -0800 |
commit | 860ea0d386b5fbbe26bf2954f402a9a73ad37edc (patch) | |
tree | 219107e86f7307a38ce4ea33494d382e61905353 /docs | |
parent | 874cd66d4b6d156d0ef112a3d0f3bc5683c6a0ec (diff) | |
download | spark-860ea0d386b5fbbe26bf2954f402a9a73ad37edc.tar.gz spark-860ea0d386b5fbbe26bf2954f402a9a73ad37edc.tar.bz2 spark-860ea0d386b5fbbe26bf2954f402a9a73ad37edc.zip |
[SPARK-11581][DOCS] Example mllib code in documentation incorrectly computes MSE
Author: Bharat Lal <bharat.iisc@gmail.com>
Closes #9560 from bharatl/SPARK-11581.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/mllib-decision-tree.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/mllib-decision-tree.md b/docs/mllib-decision-tree.md index f31c4f8893..b5b454bc69 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()); |