aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src
diff options
context:
space:
mode:
authoractuaryzhang <actuaryzhang10@gmail.com>2017-02-08 10:42:20 -0800
committerJoseph K. Bradley <joseph@databricks.com>2017-02-08 10:42:20 -0800
commit1aeb9f6cba07a52d76e5a52b13b474f5552e5f34 (patch)
tree195eed60a5ea0b049c250292acf7c3d67adff211 /sql/hive/src
parent15627ac7435f97bb71d6f8645c75a06a8b2b2388 (diff)
downloadspark-1aeb9f6cba07a52d76e5a52b13b474f5552e5f34.tar.gz
spark-1aeb9f6cba07a52d76e5a52b13b474f5552e5f34.tar.bz2
spark-1aeb9f6cba07a52d76e5a52b13b474f5552e5f34.zip
[SPARK-19400][ML] Allow GLM to handle intercept only model
## What changes were proposed in this pull request? Intercept-only GLM is failing for non-Gaussian family because of reducing an empty array in IWLS. The following code `val maxTolOfCoefficients = oldCoefficients.toArray.reduce { (x, y) => math.max(math.abs(x), math.abs(y))` fails in the intercept-only model because `oldCoefficients` is empty. This PR fixes this issue. yanboliang srowen imatiach-msft zhengruifeng ## How was this patch tested? New test for intercept only model. Author: actuaryzhang <actuaryzhang10@gmail.com> Closes #16740 from actuaryzhang/interceptOnly.
Diffstat (limited to 'sql/hive/src')
0 files changed, 0 insertions, 0 deletions