-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Better names to calibreated linear classification models #3034
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ba22e12
Sync names in logistic regression and maximum entropy trainers based …
wschin 60d7d9c
Add keyword Static
wschin d28c5ce
Rename L-BFGS family members
wschin 901e706
Add missing n back
wschin 4302c88
Use SDCA-style name for LBFGS LR
wschin 38b9940
Propose Lbfgs Logistic Regression Again
wschin 32a5e60
Merge branch 'master' into sync-lbfgs-lr-me
wschin b177db1
Update EP
wschin 804c4a8
Fix libmf
wschin 3aadd3e
Merge branch 'master' into sync-lbfgs-lr-me
wschin ff16bee
Merge branch 'sync-lbfgs-lr-me' of github.com:wschin/machinelearning …
wschin 7451306
Implement conclusions
wschin 3dfa9cf
Update baseline because of class renaming
wschin 7750434
Merge branch 'master' into sync-lbfgs-lr-me
wschin 8af0d21
Fix newly-added file
wschin 7b7cf8d
More new files..
wschin 7c8e882
More and more new changes..
wschin 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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Can you call it
LbfgsBinaryTrainer
? #ResolvedUh oh!
There was an error while loading. Please reload this page.
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.
It looks fine if we consider this trainer and its SDCA counterpart (they all solve LR). However, it will break the consistency between LBFGS trainers. Please take a look at Iteration 3.
LBFGS trainer names:
LbfgsLogisticRegressionTrainer
LbfgsPoissonRegressionTrainer
LbfgsMaximumEntropyTrainer
Note that we can't drop model names (such as LogisticRegression) because we need PoissonRegression to warn users that PoissonRegression is not a common case.
In reply to: 267460936 [](ancestors = 267460936)
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.
@sfilipi has comment on your issue, and I share it as well.
Putting word
Regression
withoutBinary
in the trainer is confusing.If I would saw name of this trainer I would assume it's part of regression task.
Which is not.
In reply to: 267475700 [](ancestors = 267475700,267460936)
Uh oh!
There was an error while loading. Please reload this page.
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, given the target user base, IMO should do a one off for this one, and keep binary in the name.
(also this feels like a classic academic vs engineering solution of a problem :D )
Also, IMO not all details need to be in the name. IMO we don't need to distingush that this is Lbfgs logistic regression through renaming. It can be in the documentations. shorter names are better...
In reply to: 267477762 [](ancestors = 267477762,267475700,267460936)
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.
It will make the API looks like
mlContext.BinaryClassification.LbfgsBinary(...)
so I switch to SDCA-style nameLbfgsCalibrated
.In reply to: 267481155 [](ancestors = 267481155,267477762,267475700,267460936)
Uh oh!
There was an error while loading. Please reload this page.
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.
There are several trainers returning the same model types. Only this one is called
LogisticRegression
and this one has been outperformed by other algorithms. Thus, I want to appendLbfgs
to emphasize thatthis is not the only trainer for logistic regression
.#Resolved