Studying the stars with machine learning