aboutsummaryrefslogtreecommitdiff
path: root/streaming/src/test
diff options
context:
space:
mode:
authorjohnnywalleye <jsondag@gmail.com>2014-07-09 11:06:34 -0700
committerXiangrui Meng <meng@databricks.com>2014-07-09 11:06:48 -0700
commitcb443cf6c3634d4416d9b708e7983c9283660724 (patch)
treeeb62e31750c87be7555f8fba73bf458bc776f74a /streaming/src/test
parent21fae6d3e6f96d7272b55b8ee2ed2571c558b1fe (diff)
downloadspark-cb443cf6c3634d4416d9b708e7983c9283660724.tar.gz
spark-cb443cf6c3634d4416d9b708e7983c9283660724.tar.bz2
spark-cb443cf6c3634d4416d9b708e7983c9283660724.zip
[SPARK-2417][MLlib] Fix DecisionTree tests
Fixes test failures introduced by https://github.com/apache/spark/pull/1316. For both the regression and classification cases, val stats is the InformationGainStats for the best tree split. stats.predict is the predicted value for the data, before the split is made. Since 600 of the 1,000 values generated by DecisionTreeSuite.generateCategoricalDataPoints() are 1.0 and the rest 0.0, the regression tree and classification tree both correctly predict a value of 0.6 for this data now, and the assertions have been changed to reflect that. Author: johnnywalleye <jsondag@gmail.com> Closes #1343 from johnnywalleye/decision-tree-tests and squashes the following commits: ef80603 [johnnywalleye] [SPARK-2417][MLlib] Fix DecisionTree tests (cherry picked from commit d35e3db2325931492b64890125a70579bc3b587b) Signed-off-by: Xiangrui Meng <meng@databricks.com>
Diffstat (limited to 'streaming/src/test')
0 files changed, 0 insertions, 0 deletions