Physics is also great for machine learning, though the approaches can be rather unintuitive. For example message passing and belief propagation in trees/graphs (Bayesian networks, Markov random fields etc.) for modeling latent variables are usually taught using the window/rainy weather marginal probability analogy and involves splitting out a bayesian/statistical equation into subcomponents via the marginalization chain rule. For physicists however, they tend to teach it using Ising models and magnetic spin, which is a totally different analogy.
A lot of the newer generative ML models are also using differential equations/Boltzmann distribution based approaches (state space models, "energy based" models) where the statistical formulations are cribbed wholesale from statistical physics/mechanics and then plugged into a neural network and autodiff system.
The best example is probably the Metropolis-Hastings algorithm which was invented by nuke people.
https://web.archive.org/web/20150603234436/http://flynnmicha...