Optimization Methods

We now consider a general unconstrained function modeling (optimization) problem, which can be applied, for example, to classification problems in computer vision. The considerations in this section apply to least squares but can be extended to a general loss function.

Let

\begin{displaymath}\mathbf{z}=\{(\mathbf{x}_i,y_i)\}_{i=1}^{n} \end{displaymath}

be the set of data involved in the modeling operation, where $\mathbf{x}_i$ is an arbitrary input and $y_i$ the corresponding observed output. Let $\ell (\hat{y}, y)$ be the cost function (loss function) that returns the goodness of the estimate on $y$. The goal is to find the weights $\boldsymbol\beta$ that parameterize the function $f(\mathbf{x}; \boldsymbol\beta)$ and minimize a cost function $S(\boldsymbol\beta)$
\begin{displaymath}
S( \boldsymbol\beta) = \int \ell(\mathbf{z} ; \boldsymbol\b...
...S( \boldsymbol\beta) = \sum_{i=1}^{n} \ell_i(\boldsymbol\beta)
\end{displaymath} (4.35)

in both the continuous and discrete cases, where $\ell_i(\boldsymbol\beta) = \ell (f_i(\mathbf{x}_i; \boldsymbol\beta), y_i )$ has been defined. For simplicity, we will refer throughout to the second case, the discrete one, when describing the cost function.

In the case of additive Gaussian noise, the maximum likelihood estimator is obtained by minimizing the quadratic loss function in Equation (4.7):

\begin{displaymath}
\ell_i(\boldsymbol\beta) = r_i^2 (\boldsymbol\beta) = \left( y_i - f_i(\mathbf{x}_i ; \boldsymbol\beta) \right)^2
\end{displaymath} (4.36)

In practical applications, it is almost never possible to obtain the minimum of the function in closed form. We must therefore resort to suitable iterative methods, which start from an initial state and move along appropriate directions $\boldsymbol\delta$, progressively approaching the minimum of the objective function.



Subsections
Paolo medici
2026-10-19