Learn an undirected graphica model from data