# Under what conditions are Maximum Likelihood Estimation and Empirical Risk Minimization equivalent

I've seen some places(such as these lecture notes from ETH Zurich) where they simply declare MLE=ERM, but so far I haven't been able to find any good explanations (or, actually, any explanations at all) of when the two are equivalent and when they might not be. I'm assuming since the two have separate definitions that they must not be equivalent in all cases, but am I mistaken in that assumption?

ERM is equivalent to MLE when the risk is defined as the negative of the likelihood. Other than that I think the differences are subtle and differ from author to author. I'd expect that usually we would only call a method MLE if it optimizes some likelihood function by selecting $$\eta(x) = \mathbb{P}(Y | X=x)$$ while empirical risk minimization (in the context of classification) is usually framed as selecting a function which maps into $$\{0, 1\}$$.