GitHub user iyounus opened a pull request:

    https://github.com/apache/spark/pull/10702

    [Spark-12732][ML] bug fix in linear regression train

    Fixed the bug in linear regression train for the case when the target 
variable is constant. The two cases for `fitIntercept=true` or 
`fitIntercept=false` should be treated differently.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/iyounus/spark 
SPARK-12732_bug_fix_in_linear_regression_train

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/10702.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 #10702
    
----
commit de60c44daa88fec1a29c58589a5538197e3e1be2
Author: Imran Younus <iyou...@us.ibm.com>
Date:   2016-01-10T01:42:28Z

    bug fix in linear regrssion for contstant label, but the test still fails.

commit 944be7143880bc307d8538ae1e354ea2c184787b
Author: Imran Younus <iyou...@us.ibm.com>
Date:   2016-01-11T19:31:54Z

    fixed the test case for constant label

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to