-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-7547][ML] Scala Example code for ElasticNet #6576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test build #33962 has finished for PR 6576 at commit
|
Test build #33966 has finished for PR 6576 at commit
|
s"L1 and L2, default: ${defaultParams.elasticNetParam}") | ||
.action((x, c) => c.copy(elasticNetParam = x)) | ||
opt[Int]("maxIter") | ||
.text(s"maximal number of iterations, default: ${defaultParams.maxIter}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say "maximum" since "maximal" often implies there are multiple maxima.
Looks good other than those small comments. Thanks! |
Test build #34015 has finished for PR 6576 at commit
|
.setElasticNetParam(params.elasticNetParam) | ||
.setMaxIter(params.maxIter) | ||
.setTol(params.tol) | ||
.setMaxIter(params.maxIter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated setMaxIter
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
Test build #34027 has finished for PR 6576 at commit
|
Test build #34033 has finished for PR 6576 at commit
|
LGTM, merging with master and branch-1.4 |
This is scala example code for both linear and logistic regression. Python and Java versions are to be added. Author: DB Tsai <dbt@netflix.com> Closes #6576 from dbtsai/elasticNetExample and squashes the following commits: e7ca406 [DB Tsai] fix test 6bb6d77 [DB Tsai] fix suite and remove duplicated setMaxIter 136e0dd [DB Tsai] address feedback 1ec29d4 [DB Tsai] fix style 9462f5f [DB Tsai] add example (cherry picked from commit a86b3e9) Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
This is scala example code for both linear and logistic regression. Python and Java versions are to be added. Author: DB Tsai <dbt@netflix.com> Closes apache#6576 from dbtsai/elasticNetExample and squashes the following commits: e7ca406 [DB Tsai] fix test 6bb6d77 [DB Tsai] fix suite and remove duplicated setMaxIter 136e0dd [DB Tsai] address feedback 1ec29d4 [DB Tsai] fix style 9462f5f [DB Tsai] add example
This is scala example code for both linear and logistic regression. Python and Java versions are to be added. Author: DB Tsai <dbt@netflix.com> Closes apache#6576 from dbtsai/elasticNetExample and squashes the following commits: e7ca406 [DB Tsai] fix test 6bb6d77 [DB Tsai] fix suite and remove duplicated setMaxIter 136e0dd [DB Tsai] address feedback 1ec29d4 [DB Tsai] fix style 9462f5f [DB Tsai] add example
This is scala example code for both linear and logistic regression. Python and Java versions are to be added.