Why logistic regression loss function negated

In the logistic regression, after logarithmic follows
Why logistic regression loss function negated

Both sides went into a minus sign
Why logistic regression loss function negated

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
Why logistic regression loss function negated

And determining the minimum value.

Guess you like

Origin blog.51cto.com/12597095/2486137