Repository navigation
Adding adaptive learning rate for MinibatchKmeans - #30045
Closed
BenJourdan wants to merge 47 commits into
Closed
BenJourdan wants to merge 47 commits into
BenJourdan wants to merge 47 commits into
Conversation
feature. Added data and result to gitignore.
fixed bug in newlr added various params for benchmarking
_minibatch_update_dense
…#30018) Co-authored-by: Lock file bot <[email protected]>
…30020) Co-authored-by: Lock file bot <[email protected]>
…ifierCV` (scikit-learn#29634) Co-authored-by: adrinjalali <[email protected]>
Co-authored-by: Lock file bot <[email protected]>
…earn#30017) Co-authored-by: Guillaume Lemaitre <[email protected]>
…earn#30014) Co-authored-by: Guillaume Lemaitre <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
…ecate algorithm (scikit-learn#29997) Co-authored-by: Guillaume Lemaitre <[email protected]>
…cikit-learn#29996) Co-authored-by: Guillaume Lemaitre <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
…30019) Co-authored-by: Lock file bot <[email protected]> Co-authored-by: Guillaume Lemaitre <[email protected]> Co-authored-by: Olivier Grisel <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Guillaume Lemaitre <[email protected]>
…eep_empty_features=True (scikit-learn#29779) Co-authored-by: Guillaume Lemaitre <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Reference Issues/PRs
None
What does this implement/fix? Explain your changes.
This request implements a recent learning rate for minibatch k-means which can be superior to the default learning rate. We implement this with the flag
adaptive_lrthat defaults to false.Details can be found in this paper that appeared in ICLR 2023. Extensive experiments can be found in this manuscript - ignore the kernel k-means results. We also added a benchmark that produces the following plot which shows the learning rate is the same or better than the default on dense datasets.
Any other comments?
This is a reasonably small code change. We add a flag to the MinibatchKmeans constructor and the _k_means_minibatch.pyx cython file. The learning rate implementation is straightforward. In the benchmarks, it appears to take a few more iterations for the adaptive learning rate to converge, often resulting in better solutions. When we removed early stopping we observed the running time is about the same.