diff options
author | MechCoder <mks542@nyu.edu> | 2016-07-06 02:54:44 -0700 |
---|---|---|
committer | Yanbo Liang <ybliang8@gmail.com> | 2016-07-06 02:54:44 -0700 |
commit | 909c6d812f6ca3a3305e4611a700c8c17905b953 (patch) | |
tree | b6583d444403d8aaf9fbc61eab5177ddf66a9b9c /bin | |
parent | 7e28fabdff2da1cc374efbf43372d92ae0cd07aa (diff) | |
download | spark-909c6d812f6ca3a3305e4611a700c8c17905b953.tar.gz spark-909c6d812f6ca3a3305e4611a700c8c17905b953.tar.bz2 spark-909c6d812f6ca3a3305e4611a700c8c17905b953.zip |
[SPARK-16307][ML] Add test to verify the predicted variances of a DT on toy data
## What changes were proposed in this pull request?
The current tests assumes that `impurity.calculate()` returns the variance correctly. It should be better to make the tests independent of this assumption. In other words verify that the variance computed equals the variance computed manually on a small tree.
## How was this patch tested?
The patch is a test....
Author: MechCoder <mks542@nyu.edu>
Closes #13981 from MechCoder/dt_variance.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions