Sitemap
The useless channel

The useless channel

Your AI consultant, mentor and educator

Member-only story

6 min readMay 22, 2023
Press enter or click to view image in full size

Basic GAN loss function

The binary cross entropy loss, also known as log loss or logistic loss, is a commonly used loss function in binary classification tasks. It measures the dissimilarity between predicted probabilities and true binary labels. The formula for binary cross entropy is as follows:

Binary Cross Entropy = -[y * log(p) + (1 — y) * log(1 — p)]

where:

  • y is the true binary label (0 or 1).
  • p is the predicted probability of the positive class.

In this formula, the first term (y * log(p)) represents the contribution to the loss when the true label is 1, and the second term ((1 — y) * log(1 — p)) represents the contribution when the true label is 0. The logarithm function is used to penalize large errors more severely, as the loss increases rapidly as the predicted probability deviates from the true label.

The binary cross entropy loss is commonly used as the objective function in binary classification models, such as logistic regression or binary classifiers within neural networks. The goal is to minimize the binary cross entropy loss, which leads to maximizing the likelihood of predicting the correct class probabilities.

It’s important to note that in practice, numerical stability techniques are often applied to prevent issues with taking the logarithm of zero or near-zero…

The useless channel
The useless channel

Written by The useless channel

Your AI consultant, mentor and educator