https://github.com/apache/spark
Revision 49016046de6036d7fccbaf8d3a81f42bd3e91b67 authored by Xiangrui Meng on 27 March 2014, 02:30:20 UTC, committed by Tathagata Das on 27 March 2014, 02:30:57 UTC
GLM needs to check addIntercept for intercept and weights. The current implementation always uses the first weight as intercept. Added a test for training without adding intercept.

JIRA: https://spark-project.atlassian.net/browse/SPARK-1327

Author: Xiangrui Meng <meng@databricks.com>

Closes #236 from mengxr/glm and squashes the following commits:

bcac1ac [Xiangrui Meng] add two tests to ensure {Lasso, Ridge}.setIntercept will throw an exceptions
a104072 [Xiangrui Meng] remove protected to be compatible with 0.9
0e57aa4 [Xiangrui Meng] update Lasso and RidgeRegression to parse the weights correctly from GLM mark createModel protected mark predictPoint protected
d7f629f [Xiangrui Meng] fix a bug in GLM when intercept is not used

(cherry picked from commit d679843a39bb4918a08a5aebdf113ac8886a5275)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
1 parent 2f90dc5
History
Tip revision: 49016046de6036d7fccbaf8d3a81f42bd3e91b67 authored by Xiangrui Meng on 27 March 2014, 02:30:20 UTC
[SPARK-1327] GLM needs to check addIntercept for intercept and weights
Tip revision: 4901604

README.md

back to top