mathematics required for machine learning