Machine Learning formula reference

Binary Cross Entropy

Measures probabilistic classification loss for a binary target.

Open in editor
LaTeXL=-[y\log p+(1-y)\log(1-p)]

Variables

  • Define all variables, domains, and units before substitution.

How to use this formula

Measures probabilistic classification loss for a binary target.

Important notes

  • Verify assumptions and conventions before use.

Quick example

Apply the binary cross entropy to a small known case and verify the result.

Applicability, worked calculation, and verification

Assumptions and domain checks

  • Verify assumptions and conventions before use.
  • Logarithm arguments must be positive in the real domain, and the base must be stated when it is not implied.
  • State the data, loss, regularization, normalization, and optimization assumptions used by the model.

Worked example

Input

Output

Apply the binary cross entropy to a small known case and verify the result.

Common mistakes

  • Before substituting values into Binary Cross Entropy, map each variable to its definition and preserve every sign, exponent, subscript, and grouping mark.
  • Verify the result of Binary Cross Entropy with a known case, inverse operation, dimensional check, or independent calculation before publishing it.

Continue the workflow

Use Binary Cross Entropy in your own work

  1. Check the domainMatch the variables and assumptions to the problem before substituting values.
  2. Copy the exact notationPreserve grouping, signs, and exponents in L=-[y\log p+(1-y)\log(1-p)].
  3. Edit or convertOpen the expression in the LaTeX editor, then export it for your document or web page.

Review and verification

Last reviewed: 2026-07-23

Automated quality check: Kept noindex until the missing evidence is supplied.

Formula references

Frequently asked questions

What is the Binary Cross Entropy used for?

Measures probabilistic classification loss for a binary target.

Can I copy this formula as LaTeX?

Yes. Copy L=-[y\log p+(1-y)\log(1-p)] or open it in the LaTeX editor.

What should I check before using it?

Confirm that each variable, unit, domain restriction, and assumption matches the problem.

Reuse, attribution, and correction

Share this reference without losing its source

Copy a citation, permanent link, Markdown link, or self-contained embed card. Each reusable format points readers back to the maintained canonical page.

Report an issue

Search the whole reference

Symbols, formulas, guides, tools and commands

Start typing to search.

move · Enter open · Esc close