Cost function of logistic regression
To find the optimal parameters
Sigmoid
Prediction