Inside the book "The Elements of statistical learning", I stumbled upon the following notation (Ex. 2.7)
$$E_{\mathcal{Y|X}}(f(x_0) - \hat{f}(x_0))^2$$ where $\mathcal{X, Y}$ are two random variables representing the training data.
I would like to know how to formally define $E_{\mathcal{Y|X}}$. I know what a condition expectation is, and that some authors are using $E_{Y|X}[Y|X]$ to denote the condition expectation of $Y$ given $X$. However, we don't have a condition expectation in this example, do we?
A second quite common notation is something like $E_X[Y]$. Here, we use the probability distribution of $\mathbb{P}_X$ to compute the expectation. $$E_X[Y] = \int Y \mathbb{P}_X $$ However $\mathcal{X|Y}$ is not a random variable. So, I really don't know how the define $E_{\mathcal{Y|X}}$.
This question is related to an answer given by Dilip Sarwate pipes vs commas in expectation notation subscript Here, a definition of $E_{\mathcal{Y|X}}$ wasn't found.
P.S. Is there any guide for common notation used in ML. I have a rather heavy math background, and I'm often confused by the way how probability theory is applied.