Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
probml
GitHub Repository: probml/pyprobml
Path: blob/master/notebooks/book1/08/fig_8_14.ipynb
1192 views
Kernel: Unknown Kernel

Illustration of Newton's method for minimizing a 1d function. (a) The solid curve is the function L(x)\mathcal{L}(x). The dotted line Lquad(θ)\mathcal{L}_{\mathrm{quad}}(\theta ) is its second order approximation at θt\theta _t. The Newton step dtd_t is what must be added to θt\theta _t to get to the minimum of Lquad(θ)\mathcal{L}_{\mathrm{quad}}(\theta ). Adapted from Figure 13.4 of \citep{Vandenberghe06}. Generated by newtonsMethodMinQuad.ipynb . (b) Illustration of Newton's method applied to a nonconvex function. We fit a quadratic function around the current point θt\theta _t and move to its stationary point, θt+1=θt+dt\theta _{t+1} = \theta _t+ d_t. Unfortunately, this takes us near a local maximum of ff, not minimum. This means we need to be careful about the extent of our quadratic approximation. Adapted from Figure 13.11 of \citep{Vandenberghe06}. Generated by newtonsMethodNonConvex.ipynb .