Cost Function, Non Convex Optimization, Logistic Regression, Log Loss Function.
to use for logistic regression. We’re going to say the cost or the penalty that the algorithm pays if it outputs a value H of X. So, this is some number like 0.7 where it predicts a value H of X. And the actual cost label turns out to be Y. The cost is going to be minus log H of X if Y is equal 1.