diff options
author | Imran Younus <iyounus@us.ibm.com> | 2016-01-20 11:16:59 -0800 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2016-01-20 11:16:59 -0800 |
commit | 9753835cf3acc135e61bf668223046e29306c80d (patch) | |
tree | 0bb568468afea635647eeb7df8e30453a2f95489 /repl | |
parent | 9bb35c5b59e58dbebbdc6856d611bff73dd35a91 (diff) | |
download | spark-9753835cf3acc135e61bf668223046e29306c80d.tar.gz spark-9753835cf3acc135e61bf668223046e29306c80d.tar.bz2 spark-9753835cf3acc135e61bf668223046e29306c80d.zip |
[SPARK-12230][ML] WeightedLeastSquares.fit() should handle division by zero properly if standard deviation of target variable is zero.
This fixes the behavior of WeightedLeastSquars.fit() when the standard deviation of the target variable is zero. If the fitIntercept is true, there is no need to train.
Author: Imran Younus <iyounus@us.ibm.com>
Closes #10274 from iyounus/SPARK-12230_bug_fix_in_weighted_least_squares.
Diffstat (limited to 'repl')
0 files changed, 0 insertions, 0 deletions