Algorithm 2.1.
Stochastic Coordinate Coding with Missing Values
| Initialization: | |
|---|---|
| Samples X = {x1, x2, …, xn}, missing indices Ω = {Ω1, Ω2, …, Ωn}, λ ∈ ℝ, initial dictionary 𝒟0 ∈ ℝm×k, initial combination coeficients Z = {z1, z2, …, zn}, number of iterations T. | |
| 1: | ℋ ∈ ℝk×k ← 0 |
| 2: | for t = 1 to T do |
| 3: | for i = 1 to n do |
| 4: | Update coefficients via a few iterations of coordinate descent according to (3) |
| 5: | zi ← arg minzi . |
| 6: | Update Hessian matrix |
| 7: | , |
| 8: | Update the dictionary 𝒟i−1 colum by column |
| 9: | for j ∈ {t|1 ≤ t ≤ k, t ∈ ℕ, zi(t) ≠ 0} do |
| 10: | . |
| 11: | . |
| 12: | . |
| 13: | end for |
| 14: | end for |
| 15: | 𝒟0 ← 𝒟n |
| 16: | end for |
| Output: 𝒟n. | |