Usage
To enable mathjax, just add mathjax: true
in Front-matte like this:
1 |
--- |
then you can write mathjax scripts in post
MathJax-Source-Code
1 |
begin{align} |
Render-Result
begin{align}
theta_0 & := theta_0 - alphafrac{partial}{partialtheta_0}J(theta_0,theta_1) \
& = theta_0 - alphafrac{partial}{partialtheta_0} frac{1}{2m} sum_{i=1}^{m}(h_theta(x^{(i)}) - y^{(i)})^2 \
& = theta_0 - (alpha frac{1}{2m} * 2 * sum_{i=1}^{m}(h_theta(x^{(i)}) - y^{(i)})) * frac{partial}{partialtheta_0}(h_theta(x^{(i)}) - y^{(i)}) \
& = theta_0 - frac{alpha}{m} * sum_{i=1}^{m}(h_theta(x^{(i)}) - y^{(i)})
end{align}
近期评论