Cost Function, Gradient Descent.
one. And one minus Y is going to be equal to zero, right? So if Y is equal to one, then one minus Y is one minus one, which is therefore zero. So the second term gets multiplied by zero and goes away, and we’re left with only this first term which is Y times log, minus Y times log H of X. Y is 1 so