Cost Function, Non Convex Optimization, Logistic Regression, Log Loss Function.
cost goes infinity if Y equals 1 and H of X approaches 0. This might consider of Y1, let’s look at what the cost function looks like for Y0. If Y is equal to 0, then the cost looks like this expression over here. And if you plot the function minus log 1 minus Z what you get is the cost function