Algorithm 1.
The framework of online dictionary learning in mini-batch mode.
| Input: Initialized dictionary D0 ∈ Rn×k, input data yi ∈ Rn, number of iterations T, regularization parameter λ ∈ R. |
| Output: Learned dictionary DT |
| A0 = 0, B0 = 0. |
| for t = 1 → T do |
| Randomly draw a set from Y : yt,1, yt,2, …, yt,τ. |
| for i = 1 → τ do |
| Sparse coding: . |
| end for |
| , |
| where , and θ = tτ if t < τ, θ = τ2 + t − τ otherwise. |
| Dictionary update: Compute Dt, so that: |
| . |
| end for |