Learn Before
Formula

Average Objective Function in Deep Learning

In deep learning, the objective function f(x)f(\mathbf{x}) is typically formulated as the average of the individual loss functions fi(x)f_i(\mathbf{x}) across the nn examples in the training dataset, where x\mathbf{x} is the parameter vector. This formulation is given by: f(x)=1ni=1nfi(x).f(\mathbf{x}) = \frac{1}{n} \sum_{i = 1}^n f_i(\mathbf{x}). Consequently, the full gradient of the objective function at x\mathbf{x} is the average of the gradients for each example: ablaf(x)=1ni=1nablafi(x). abla f(\mathbf{x}) = \frac{1}{n} \sum_{i = 1}^n abla f_i(\mathbf{x}).

0

1

Updated 2026-05-15

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L