daviddalpiaz / appliedstats

:bar_chart: Methods of Applied Statistics Course Textbook Repository
https://book.stat420.org/
158 stars 171 forks source link

LaTeX equation conversion hiccups under epub #100

Closed coatless closed 3 years ago

coatless commented 3 years ago

Looks like some equations do not use valid latex for epub.

I think \bf needs to be switched to \boldsymbol{}. Not a show-stopper.

list of equation issues ``` [WARNING] Could not convert TeX math ' (\alpha \beta)_{1j} + (\alpha \beta)_{2j} + (\alpha \beta)_{3j} = 0 \\ (\alpha \beta)_{i1} + (\alpha \beta)_{i2} + (\alpha \beta)_{i3} + (\alpha \beta)_{i4} = 0 ', rendering as TeX: (\alpha \beta)_{1j} + (\alpha \beta)_{2j ^ unexpected "(" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' Y \mid {\bf X} = {\bf x} \sim N(\beta_0 + \beta_1x_1 + \ldots + \beta_{p - 1}x_{p - 1}, \ \sigma^2) ', rendering as TeX: ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x})', rendering as TeX: \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x}) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \ldots + \beta_{p - 1} x_{p - 1}', rendering as TeX: \eta({\bf x}) = \beta_0 + \beta_1 x_1 + ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x})', rendering as TeX: \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{E}[Y \mid {\bf X} = {\bf x}]', rendering as TeX: ext{E}[Y \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \eta({\bf x}) = g\left(\text{E}[Y \mid {\bf X} = {\bf x}]\right). ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'Y \mid {\bf X} = {\bf x}', rendering as TeX: Y \mid {\bf X} = {\bf x} ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'N(\mu({\bf x}), \sigma^2)', rendering as TeX: N(\mu({\bf x}), \sigma^2) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{Pois}(\lambda({\bf x}))', rendering as TeX: Pois}(\lambda({\bf x})) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{Bern}(p({\bf x}))', rendering as TeX: \text{Bern}(p({\bf x})) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{E}[Y \mid {\bf X} = {\bf x}]', rendering as TeX: ext{E}[Y \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\mu({\bf x})', rendering as TeX: \mu({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\lambda({\bf x})', rendering as TeX: \lambda({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x}) = \mu({\bf x})', rendering as TeX: \eta({\bf x}) = \mu({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x}) = \log(\lambda({\bf x}))', rendering as TeX: \eta({\bf x}) = \log(\lambda({\bf x})) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x}) = \log \left(\frac{p({\bf x})}{1 - p({\bf x})} \right)', rendering as TeX: \eta({\bf x}) = \log \left(\frac{p({\bf ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\mu({\bf x}) = \eta({\bf x})', rendering as TeX: \mu({\bf x}) = \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\lambda({\bf x}) = e^{\eta({\bf x})}', rendering as TeX: \lambda({\bf x}) = e^{\eta({\bf x})} ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x}) = \frac{e^{\eta({\bf x})}}{1 + e^{\eta({\bf x})}} = \frac{1}{1 + e^{-\eta({\bf x})}}', rendering as TeX: p({\bf x}) = \frac{e^{\eta({\bf x})}}{1 ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x})', rendering as TeX: \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \eta({\bf x}) = g\left(\text{E}[Y \mid {\bf X} = {\bf x}]\right). ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \text{E}[Y \mid {\bf X} = {\bf x}] = g^{-1}(\eta({\bf x})). ', rendering as TeX: ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' p({\bf x}) = P[Y = 1 \mid {\bf X} = {\bf x}] ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' P[Y = 0 \mid {\bf X} = {\bf x}] + P[Y = 1 \mid {\bf X} = {\bf x}] = 1 ', rendering as TeX: ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' P[Y = 0 \mid {\bf X} = {\bf x}] = 1 - p({\bf x}) ', rendering as TeX: ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x})}{1 - p({\bf x})}\right) = \beta_0 + \beta_1 x_1 + \ldots + \beta_{p - 1} x_{p - 1} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \frac{p({\bf x})}{1 - p({\bf x})} = \frac{P[Y = 1 \mid {\bf X} = {\bf x}]}{P[Y = 0 \mid {\bf X} = {\bf x}]} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' Y \mid {\bf X} = {\bf x} \sim N(\beta_0 + \beta_1x_1 + \ldots + \beta_qx_q, \ \sigma^2). ', rendering as TeX: ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x})}{1 - p({\bf x})}\right) = \beta_0 + \beta_1 x_1 + \ldots + \beta_{q} x_{q} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' p({\bf x}) = P[Y = 1 \mid {\bf X} = {\bf x}] = \frac{e^{\beta_0 + \beta_1 x_{1} + \cdots + \beta_{p-1} x_{(p-1)}}}{1 + e^{\beta_0 + \beta_1 x_{1} + \cdots + \beta_{p-1} x_{(p-1)}}} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x_i})}{1 - p({\bf x_i)})}\right) = \beta_0 + \beta_1 x_{i1} + \cdots + \beta_{p-1} x_{i(p-1)} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'P[Y_i = 1 \mid {\bf X_i} = {\bf x_i}]', rendering as TeX: [Y_i = 1 \mid {\bf X_i} = {\bf x_i}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' p({\bf x_i}) = P[Y_i = 1 \mid {\bf X_i} = {\bf x_i}] = \frac{e^{\beta_0 + \beta_1 x_{i1} + \cdots + \beta_{p-1} x_{i(p-1)}}}{1 + e^{\beta_0 + \beta_1 x_{i1} + \cdots + \beta_{p-1} x_{i(p-1)}}} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' 1 - p({\bf x_i}) = P[Y_i = 0 \mid {\bf X} = {\bf x_i}] = \frac{1}{1 + e^{\beta_0 + \beta_1 x_{i1} + \cdots + \beta_{p-1} x_{i(p-1)}}} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' L(\boldsymbol{{\beta}}) = \prod_{i = 1}^{n} P[Y_i = y_i \mid {\bf X_i} = {\bf x_i}] ', rendering as TeX: ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' L(\boldsymbol{{\beta}}) = \prod_{i = 1}^{n} p({\bf x_i})^{y_i} (1 - p({\bf x_i}))^{(1 - y_i)} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' L(\boldsymbol{{\beta}}) = \prod_{i : y_i = 1}^{n} p({\bf x_i}) \prod_{j : y_j = 0}^{n} (1 - p({\bf x_j})) ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' {\bf x_i}^{\top} \boldsymbol{{\beta}^*} > 0 \implies y_i = 1 ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' {\bf x_i}^{\top} \boldsymbol{{\beta}^*} < 0 \implies y_i = 0 ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{E}[Y \mid {\bf X} = {\bf x}]', rendering as TeX: ext{E}[Y \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{E}[Y \mid {\bf X} = {\bf x}] = P[Y = 1 \mid {\bf X} = {\bf x}]', rendering as TeX: ext{E}[Y \mid {\bf X} = {\bf x}] = P[Y = ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \begin{aligned} \text{E}[Y \mid {\bf X} = {\bf x}] &= 1 \cdot P[Y = 1 \mid {\bf X} = {\bf x}] + 0 \cdot P[Y = 0 \mid {\bf X} = {\bf x}] \\ &= P[Y = 1 \mid {\bf X} = {\bf x}] \end{aligned} ', rendering as TeX: egin{aligned} ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{E}[Y \mid {\bf X} = {\bf x}]', rendering as TeX: ext{E}[Y \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'P[Y = 1 \mid {\bf X} = {\bf x}]', rendering as TeX: P[Y = 1 \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x})}{1 - p({\bf x})}\right) = -2 + 3 x ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \begin{aligned} Y_i \mid {\bf X_i} = {\bf x_i} &\sim \text{Bern}(p_i) \\ p_i &= p({\bf x_i}) = \frac{1}{1 + e^{-\eta({\bf x_i})}} \\ \eta({\bf x_i}) &= -2 + 3 x_i \end{aligned} ', rendering as TeX: \begin{aligned} ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{\eta}({\bf x}) = \log\left(\frac{\hat{p}({\bf x})}{1 - \hat{p}({\bf x})}\right)', rendering as TeX: \hat{\eta}({\bf x}) = \log\left(\frac{\h ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{p}({\bf x}) = \frac{e^{\hat{\eta}({\bf x})}}{1 + e^{\hat{\eta}({\bf x})}} = \frac{1}{1 + e^{-\hat{\eta}({\bf x})}}', rendering as TeX: \hat{p}({\bf x}) = \frac{e^{\hat{\eta}({ ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'P[Y = 1 \mid {\bf X} = {\bf x}]', rendering as TeX: P[Y = 1 \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{\text{E}}[Y \mid {\bf X} = {\bf x}]', rendering as TeX: xt{E}}[Y \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'P[Y = 1 \mid {\bf X} = {\bf x}]', rendering as TeX: P[Y = 1 \mid {\bf X} = {\bf x}] ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{\hat{p}({\bf x})}{1 - \hat{p}({\bf x})}\right) = -2.3 + 3.7 x ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{p}({\bf x})', rendering as TeX: \hat{p}({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x})}{1 - p({\bf x})}\right) = 1 + -4 x. ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \begin{aligned} Y_i \mid {\bf X_i} = {\bf x_i} &\sim \text{Bern}(p_i) \\ p_i &= p({\bf x_i}) = \frac{1}{1 + e^{-\eta({\bf x_i})}} \\ \eta({\bf x_i}) &= 1 + -4 x_i \end{aligned} ', rendering as TeX: \begin{aligned} ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{p}({\bf x})', rendering as TeX: \hat{p}({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x})}{1 - p({\bf x})}\right) = -1.5 + 0.5x + x^2. ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \begin{aligned} Y_i \mid {\bf X_i} = {\bf x_i} &\sim \text{Bern}(p_i) \\ p_i &= p({\bf x_i}) = \frac{1}{1 + e^{-\eta({\bf x_i})}} \\ \eta({\bf x_i}) &= -1.5 + 0.5x_i + x_i^2 \end{aligned} ', rendering as TeX: \begin{aligned} ^ unexpected "X" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \eta({\bf x}) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \ldots + \beta_{p - 1} x_{p - 1} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x})}{1 - p({\bf x})}\right) = \beta_0 + \beta_1 x_1 + \ldots + \beta_{p - 1} x_{p - 1} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x_i})}{1 - p({\bf x_i})}\right) = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \cdots + \beta_{(p-1)} x_{i(p-1)} + \epsilon_i ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x_i})}{1 - p({\bf x_i})}\right) = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \cdots + \beta_{(q-1)} x_{i(q-1)} + \epsilon_i ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \frac{\hat{\eta}({\bf x}) - \eta({\bf x})}{\text{SE}[\hat{\eta}({\bf x})]} \overset{\text{approx}}{\sim} N(0, 1) ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x})', rendering as TeX: \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \hat{\eta}({\bf x}) \pm z_{\alpha/2} \cdot \text{SE}[\hat{\eta}({\bf x})] ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \left(\text{logit}^{-1}(\hat{\eta}({\bf x}) - z_{\alpha/2} \cdot \text{SE}[\hat{\eta}({\bf x})] ), \ \text{logit}^{-1}(\hat{\eta}({\bf x}) + z_{\alpha/2} \cdot \text{SE}[\hat{\eta}({\bf x})])\right) ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{\eta}({\bf x})', rendering as TeX: \hat{\eta}({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\text{SE}[\hat{\eta}({\bf x})]', rendering as TeX: E}[\hat{\eta}({\bf x})] ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x})', rendering as TeX: \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x})', rendering as TeX: \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math 'p({\bf x})', rendering as TeX: p({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\eta({\bf x})', rendering as TeX: \eta({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \log\left(\frac{p({\bf x})}{1 - p({\bf x})}\right) = \beta_0 + \beta_{1}x_{\texttt{alcohol}} + \beta_{2}x_{\texttt{ldl}} + \beta_{3}x_{\texttt{famhist}} + \beta_{4}x_{\texttt{typea}} + \beta_{5}x_{\texttt{age}} + \beta_{6}x_{\texttt{ldl}}x_{\texttt{famhist}} + \beta_{7}x_{\texttt{ldl}}^2 ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' p({\bf x}) = P[Y = 1 \mid {\bf X} = {\bf x}] ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' 1 - p({\bf x}) = P[Y = 0 \mid {\bf X} = {\bf x}]. ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' C^B({\bf x}) = \underset{k}{\mathrm{argmax}} \ P[Y = k \mid {\bf X = x}]. ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \hat{C}(\bf x) = \begin{cases} 1 & p({\bf x}) > 0.5 \\ 0 & p({\bf x}) \leq 0.5 \end{cases} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \hat{C}({\bf x}) = \underset{k}{\mathrm{argmax}} \ \hat{P}[Y = k \mid {\bf X = x}]. ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{p}({\bf x}) = 1 - \hat{p}({\bf x})', rendering as TeX: \hat{p}({\bf x}) = 1 - \hat{p}({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \hat{C}(\bf x) = \begin{cases} 1 & \hat{p}({\bf x}) > 0.5 \\ 0 & \hat{p}({\bf x}) \leq 0.5 \end{cases} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math '\hat{p}({\bf x})', rendering as TeX: \hat{p}({\bf x}) ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \text{Misclass}(\hat{C}, \text{Data}) = \frac{1}{n}\sum_{i = 1}^{n}I(y_i \neq \hat{C}({\bf x_i})) ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' I(y_i \neq \hat{C}({\bf x_i})) = \begin{cases} 0 & y_i = \hat{C}({\bf x_i}) \\ 1 & y_i \neq \hat{C}({\bf x_i}) \\ \end{cases} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \eta({\bf x}) = 0 \iff p({\bf x}) = 0.5 ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace [WARNING] Could not convert TeX math ' \hat{C}(\bf x) = \begin{cases} 1 & \hat{p}({\bf x}) > c \\ 0 & \hat{p}({\bf x}) \leq c \end{cases} ', rendering as TeX: ^ unexpected "x" expecting "%", "\\label", "\\nonumber" or whitespace ```
daviddalpiaz commented 3 years ago

On other projects I skip rendering to epub, might do that here as well.