本文提出了一种有效找到sparse codes算法:迭代的解决两个凸优化问题:一个L1 regularized least squares problem,一个L2 constrained least square problem。在解决L1 least squares problem to learn coefficients;Lagrange dual method for the L2 constrained least squares probl;em to learnn the bases for any sparsity penalty function。