Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correction to the cost function: since the function is J(\theta) = 1/m \sum -ylog(h) - (1-y)*(1-h), the cost variable should be set to cost_1 - cost_2, not cost_1 + cost_2
- Loading branch information