GitHub user yanboliang opened a pull request:
https://github.com/apache/spark/pull/12731
[SPARK-13590] [ML] [Doc] Document spark.ml LiR, LoR and
AFTSurvivalRegression behavior difference
## What changes were proposed in this pull request?
When fitting ```LinearRegressionModel``` and ```LogisticRegressionModel```
w/o intercept on dataset with constant nonzero column, spark.ml produce same
model as R glmnet but different from LIBSVM.
When fitting ```AFTSurvivalRegressionModel``` w/o intercept on dataset with
constant nonzero column, spark.ml produce different model compared with R
survival::survreg.
We should output a warning message and clarify in document for this
condition.
## How was this patch tested?
Document change, no unit test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yanboliang/spark spark-13590
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12731.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 #12731
----
commit 841c2d3818b1882c96572c4ff5991083c0795fd8
Author: Yanbo Liang <[email protected]>
Date: 2016-04-27T08:47:18Z
Add logWarning for LiR, LoR, AFTSR when fit w/o intercept on dataset with
constant nonzero column
commit 1e017351487b8b3834e32546a6b049a62417529d
Author: Yanbo Liang <[email protected]>
Date: 2016-04-27T09:30:31Z
add docs
----
---
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]