Learning Real-World Problems by Finding Correlated Basis Functions