Skip to content
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

Enable minibatch processing #3

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Enable minibatch processing #3

merged 1 commit into from
Jul 19, 2024

Conversation

RomeoV
Copy link
Owner

@RomeoV RomeoV commented Jul 19, 2024

For large datasets, processing every sample takes a long time, but has diminishing returns.
We propose at each ksvd_update step to only consider a subset of the samples, which are randomly chosen every time.
The sparse coding stays the same.

We provide a new parameter minibatch_size which can be set to nothing to ignore this, or to a minibatch size.
Since sparse coding still encodes every sample, the sparse coding time can start to dominate when small minibatches are chosen.

Note that we also reveres the order of sparse coding and ksvd_update

Patch important bug with minibatch
@RomeoV RomeoV merged commit 3aa5e78 into master Jul 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant