Formula should be :
Incorrect formula
`Li = - yi log(Pi) + (1- yi)log(1-Pi)
Correct formula
Either
Li = - ( yi log(Pi) + (1- yi)log(1-Pi) )
or
Li = - yi log(Pi) - (1- yi)log(1-Pi)
Because i tried to derive the above incorrect formula to
Li = log(1+ e^yi) - yi*yihat
and then i realised, initial loss function is not correct.
Please let me know if my understanding is correct.