Repository: spark
Updated Branches:
  refs/heads/branch-1.6 006d73a74 -> 62f664c5a


[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/62f664c5
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/62f664c5
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/62f664c5

Branch: refs/heads/branch-1.6
Commit: 62f664c5a647786af5ff2d83f99d48a4bf0b8665
Parents: 006d73a
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:29 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/62f664c5/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

Reply via email to