aboutsummaryrefslogtreecommitdiff
path: root/examples/src
diff options
context:
space:
mode:
authorDB Tsai <dbtsai@alpinenow.com>2014-12-18 13:55:49 -0800
committerXiangrui Meng <meng@databricks.com>2014-12-18 13:55:49 -0800
commit59a49db5982ecc487187fcd92399e08b4b4bea64 (patch)
treed51225b6bc70c0cee3e1dd822c843abbb11757b6 /examples/src
parent3720057b8e7c15c2c0464b5bb7243bc22323f4e8 (diff)
downloadspark-59a49db5982ecc487187fcd92399e08b4b4bea64.tar.gz
spark-59a49db5982ecc487187fcd92399e08b4b4bea64.tar.bz2
spark-59a49db5982ecc487187fcd92399e08b4b4bea64.zip
[SPARK-4887][MLlib] Fix a bad unittest in LogisticRegressionSuite
The original test doesn't make sense since if you step in, the lossSum is already NaN, and the coefficients are diverging. That's because the step size is too large for SGD, so it doesn't work. The correct behavior is that you should get smaller coefficients than the one without regularization. Comparing the values using 20000.0 relative error doesn't make sense as well. Author: DB Tsai <dbtsai@alpinenow.com> Closes #3735 from dbtsai/mlortestfix and squashes the following commits: b1a3c42 [DB Tsai] first commit
Diffstat (limited to 'examples/src')
0 files changed, 0 insertions, 0 deletions