Fundamental Mathematical Concepts for Machine Learning in Science