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
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
[SPARK-1327] GLM needs to check addIntercept for intercept and weights
Tip revision: 4901604
File | Mode | Size |
---|---|---|
assembly | ||
bagel | ||
bin | ||
conf | ||
core | ||
data | ||
dev | ||
docker | ||
docs | ||
ec2 | ||
examples | ||
external | ||
extras | ||
graphx | ||
mllib | ||
project | ||
python | ||
repl | ||
sbin | ||
sbt | ||
streaming | ||
tools | ||
yarn | ||
.gitignore | -rw-r--r-- | 644 bytes |
CHANGES.txt | -rw-r--r-- | 123.0 KB |
LICENSE | -rw-r--r-- | 20.6 KB |
NOTICE | -rw-r--r-- | 162 bytes |
README.md | -rw-r--r-- | 3.8 KB |
make-distribution.sh | -rwxr-xr-x | 4.6 KB |
pom.xml | -rw-r--r-- | 24.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...