Machine Learning Approaches For Astrophysics And Cosmology