Machine Learning, Data Science, Loss Function, Regression, Classification.
0 (or negative class) = 1 - p Then, the cross-entropy loss for output label y (can take values 0 and 1) and predicted probability p is defined as: This is also called Log-Loss. To calculate the probability p, we can use the sigmoid function. Here, z is a function of our input features: The range of