Learning Sparse Graphical Models for Data Restoration and Multi-Label Classification