GitHub user sethah opened a pull request:
https://github.com/apache/spark/pull/15364
[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 to
`DoubleType`.
## How was this patch tested?
Added a unit test to check all solvers. This test failed before this patch.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sethah/spark linreg_numeric_type
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15364.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15364
----
commit c1cdf63b0d26b2048bc40767e6a59b98e604fa99
Author: sethah <[email protected]>
Date: 2016-10-05T23:14:40Z
fix numeric type bug
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]