In the logistic regression, after logarithmic follows
Both sides went into a minus sign
And -log (y) is characterized by a function, y smaller the larger the value -log (y), since it becomes minimization of y, so using gradient descent, y is the minimum required.
So loss function defined as
And determining the minimum value.