-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20602] [ML]Adding LBFGS optimizer and Squared_hinge loss for LinearSVC #17862
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
Closed
Closed
Changes from 14 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d46e5ed
add lbfgs as default optimizer of LinearSVC
YY-OnCall f7d5559
set owlqn as default
YY-OnCall 8a7c10f
set check
YY-OnCall 4ce0787
:Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall c8afc63
Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall 3707580
merge loss change
YY-OnCall 2ffd0eb
Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall 2ca5a74
fix r and python
YY-OnCall 5f7f456
switch between Hinge and Square
YY-OnCall d19f619
Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall 0297057
use RDDLossFunction
YY-OnCall 15d611e
merge conflict
YY-OnCall a545267
Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall 7be6bac
r and new ut
YY-OnCall aaf35ec
ut update
YY-OnCall ea82f35
merge conflict
YY-OnCall 93f7b68
merge conflict and add unit tests
YY-OnCall cec628b
style
YY-OnCall 55ce6b9
resolve conflict
YY-OnCall 0f5cad5
fix python ut
YY-OnCall bf4d955
resolve conflict
YY-OnCall 1f8e984
style
YY-OnCall a6b4cda
Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall f778f97
Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall 0bb5afe
minor updates
YY-OnCall 64bc339
Merge remote-tracking branch 'upstream/master' into svclbfgs
YY-OnCall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The
isValidfunction you can useParamValidators.inArray[String](supportedLosses))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.
Correct me if I'm wrong, IMO we need toLowerCase here.
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.
Yeah, I thought about this, but
solverparam inLinearRegressionalso ignore the thing. I tend to keep them consistent, what do you think of it ?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 tend to support case-insensitive params in
LinearRegression, or change the default behavior of ParamValidators.inArray. And we should improve the consistency in supporting case-insensitive String params anyway.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.
Created a jira to address that issue: https://issues.apache.org/jira/browse/SPARK-22331