Hidden Basis Recovery: Methods And Applications In Machine Learning