How does machine learning work?
NIST defines machine learning as the development and use of computer systems that adapt and learn from data with the goal of improving accuracy [1]. Google's introductory course puts it more concretely: it is the process of training a piece of software, called a model, to make useful predictions [2].
Rainfall is the classic example. Rather than solving the equations of atmospheric physics, a model is trained on a large body of weather data and learns which conditions lead to how much rain. It can then take today's readings and estimate the rainfall [2].
How is it different from rule-based software?
As IBM puts it, all machine learning is AI, but not all AI is machine learning. A thermostat running fixed if-then rules can count as AI, yet it learns nothing [3]. With machine learning the logic comes from examples instead: a spam filter is shown labelled emails, its mistakes are measured, and its parameters are adjusted until it gets them right [3]. The real target isn't memorising the training data but generalising to data the model hasn't seen [3].
What types of machine learning are there?
Google groups ML systems into supervised learning, unsupervised learning, reinforcement learning and generative AI [2]. Deep learning, in turn, is a subset of machine learning built on large, multi-layer neural networks [3].