Machine Learning in Astronomy: a practical overview