-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Enhancements to online linear trainers to make them stateless. #1455
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
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.
![]()
Hi @sfilipi, while it's true that's how the issue was discovered, I kind of feel like the issue of whether I think once we actually do switch the CV tests do use the CV API vs. the command line this will just happen naturally. In reply to: 434448974 [](ancestors = 434448974) Refers to: test/Microsoft.ML.Tests/TrainerEstimators/OnlineLinearTests.cs:16 in e811fb1. [](commit_id = e811fb1, deletion_comment = False) |
e811fb1 to
7d713a3
Compare
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.
![]()
| var env = CatalogUtils.GetEnvironment(ctx); | ||
| var loss = new TrivialClassificationLossFactory(lossFunction ?? new LogLoss()); | ||
| return new AveragedPerceptronTrainer(env, label, features, weights, loss, learningRate, decreaseLearningRate, l2RegularizerWeight, numIterations, advancedSettings); | ||
| return new AveragedPerceptronTrainer(env, label, features, weights, lossFunction ?? new LogLoss(), learningRate, decreaseLearningRate, l2RegularizerWeight, numIterations, advancedSettings); |
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.
LogLoss() [](start = 100, length = 9)
it's LogLoss here, but the default for AP is HingeLoss.
* Factor stateful logic into a separate internal object. * Remove direct usage of Console.Writeline * Opportunistic fixes of minor issues.
5ad6f06 to
9c173c8
Compare
Fixes #1358 .