Learning And Optimizing Probabilistic Models For Planning Under Uncertainty