Euler's formula

$$ e^{i \pi} = -1 $$

June 29, 2023 · 1 分鐘

Cross Entropy

Cross Entropy Binary Cross Entropy Given a dataset $D = \{ (x_1, y_1), \cdots, (x_n, y_n) \}$ where $x_i \in \mathbb{R}^d$ and $y_i \in \{ 1,0 \}$. Let $h: \mathbb{R}^d \rightarrow [0,1]$ be the function in hypothesis set and $\hat{y_i} = h(x_i)$ for all $i=1,\cdots, n$. Since we have $$ p(y_i=1|x_i) = \left\{\begin{array}{cc} h(x_i) & \text{ if } y_i = 1 \\ 1-h(x_i) & \text{ if } y_i = 0 \end{array} \right....

2 分鐘