-
- Downloads
[SPARK-12230][ML] WeightedLeastSquares.fit() should handle division by zero...
[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.
Showing
- mllib/src/main/scala/org/apache/spark/ml/optim/WeightedLeastSquares.scala 19 additions, 2 deletions...cala/org/apache/spark/ml/optim/WeightedLeastSquares.scala
- mllib/src/test/scala/org/apache/spark/ml/optim/WeightedLeastSquaresSuite.scala 64 additions, 5 deletions...org/apache/spark/ml/optim/WeightedLeastSquaresSuite.scala
Please register or sign in to comment