Skip to content

Commit 0512960

Browse files
bharatljkbradley
authored andcommitted
[SPARK-11581][DOCS] Example mllib code in documentation incorrectly computes MSE
Author: Bharat Lal <[email protected]> Closes #9560 from bharatl/SPARK-11581. (cherry picked from commit 860ea0d) Signed-off-by: Joseph K. Bradley <[email protected]>
1 parent a33fd73 commit 0512960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mllib-decision-tree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ Double testMSE =
430430
public Double call(Double a, Double b) {
431431
return a + b;
432432
}
433-
}) / data.count();
433+
}) / testData.count();
434434
System.out.println("Test Mean Squared Error: " + testMSE);
435435
System.out.println("Learned regression tree model:\n" + model.toDebugString());
436436

0 commit comments

Comments
 (0)