Closed vidyabhandary closed 4 years ago
Realized the display seems to be mangled only when browsing the GitHub page - it gets displayed via the jupyter environment correctly.
Hi @vidyabhandary ,
Thanks for your feedback, and thanks as well for your very kind words, I'm glad you enjoy my book! :)
Indeed, github's notebook viewer is not great when it comes to displaying equations. I don't know what they're doing under the hood, but it's not working. That's why I have this warning on the repo's home page:
Pretty much any other viewer than github's should display things correctly, as you've noticed. You can use Colab, or Jupyter.org's viewer, etc.
Hope this helps.
In Chapter 4 - Exercise: Batch Gradient Descent with early stopping for Softmax Regression, the math equations are not getting displayed correctly. I checked in Chrome, Edge and Firefox.
$J(\mathbf{\Theta}) =
And the equation for the gradients:
$\nabla{\mathbf{\theta}^{(k)}} \, J(\mathbf{\Theta}) = \dfrac{1}{m} \sum\limits{i=1}^{m}{ \left ( \hat{p}^{(i)}_k - y_k^{(i)} \right ) \mathbf{x}^{(i)}}$
I think it can be corrected with the following change
So the equations we will need are the cost function:
$$J(\mathbf{\Theta}) = \dfrac{1}{m}\sum\limits{i=1}^{m}\sum\limits{k=1}^{K}{y_k^{(i)}\log\left(\hat{p}_k^{(i)}\right)}$$
And the equation for the gradients:
$$\nabla{\mathbf{\theta}^{(k)}} \, J(\mathbf{\Theta}) = \dfrac{1}{m} \sum\limits{i=1}^{m}{ \left ( \hat{p}^{(i)}_k - y_k^{(i)} \right ) \mathbf{x}^{(i)}}$$
Thank you for your awesome book.