aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/sql/readwriter.py
diff options
context:
space:
mode:
authorsethah <seth.hendrickson16@gmail.com>2016-10-06 21:10:17 -0700
committerYanbo Liang <ybliang8@gmail.com>2016-10-06 21:10:17 -0700
commit3713bb199142c5e06e2e527c99650f02f41f47b1 (patch)
tree228624cca24862f0e8bf8c1b1d76a5b6647e4c74 /python/pyspark/sql/readwriter.py
parent49d11d49983fbe270f4df4fb1e34b5fbe854c5ec (diff)
downloadspark-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/readwriter.py')
0 files changed, 0 insertions, 0 deletions