Open csjue opened 3 years ago
code/ex2-logistic regression/1. logistic_regression_v1.ipynb的markdown块中,正则化梯度写错了
$$\frac{\partial J\left( \theta \right)}{\partial {{\theta }{j}}}=\left( \frac{1}{m}\sum\limits{i=1}^{m}{\left( {{h}{\theta }}\left( {{x}^{\left( i \right)}} \right)-{{y}^{\left( i \right)}} \right)} \right)+\frac{\lambda }{m}{{\theta }{j}}\text{ }\text{ for j}\ge \text{1}$$
code/ex2-logistic regression/1. logistic_regression_v1.ipynb的markdown块中,正则化梯度写错了
regularized gradient(正则化梯度)
$$\frac{\partial J\left( \theta \right)}{\partial {{\theta }{j}}}=\left( \frac{1}{m}\sum\limits{i=1}^{m}{\left( {{h}{\theta }}\left( {{x}^{\left( i \right)}} \right)-{{y}^{\left( i \right)}} \right)} \right)+\frac{\lambda }{m}{{\theta }{j}}\text{ }\text{ for j}\ge \text{1}$$