Cost function for logistic regression [7:14 min]