diff options
author | sethah <seth.hendrickson16@gmail.com> | 2016-10-06 21:10:17 -0700 |
---|---|---|
committer | Yanbo Liang <ybliang8@gmail.com> | 2016-10-06 21:10:17 -0700 |
commit | 3713bb199142c5e06e2e527c99650f02f41f47b1 (patch) | |
tree | 228624cca24862f0e8bf8c1b1d76a5b6647e4c74 /python/pyspark/sql/streaming.py | |
parent | 49d11d49983fbe270f4df4fb1e34b5fbe854c5ec (diff) | |
download | spark-3713bb199142c5e06e2e527c99650f02f41f47b1.tar.gz spark-3713bb199142c5e06e2e527c99650f02f41f47b1.tar.bz2 spark-3713bb199142c5e06e2e527c99650f02f41f47b1.zip |
[SPARK-17792][ML] L-BFGS solver for linear regression does not accept general numeric label column types
## What changes were proposed in this pull request?
Before, we computed `instances` in LinearRegression in two spots, even though they did the same thing. One of them did not cast the label column to `DoubleType`. This patch consolidates the computation and always casts the label column to `DoubleType`.
## How was this patch tested?
Added a unit test to check all solvers. This test failed before this patch.
Author: sethah <seth.hendrickson16@gmail.com>
Closes #15364 from sethah/linreg_numeric_type.
Diffstat (limited to 'python/pyspark/sql/streaming.py')
0 files changed, 0 insertions, 0 deletions