Formula

Single Example Loss Term Formula

To evaluate the performance of a neural network on an individual data point, a loss function ll is applied to its predictions. Given the network's final output layer variable o\mathbf{o} and the true target label yy, the unregularized loss term LL for a single example is formulated as:

L=l(o,y)L = l(\mathbf{o}, y)

This scalar value quantifies the discrepancy between the model's output and the actual ground truth for that specific data example before any complexity penalties are added.

0

1

Updated 2026-05-06

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L