Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
math_tech_info
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orestis.malaspin
math_tech_info
Commits
616fffb3
Commit
616fffb3
authored
5 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
added saddle point
parent
32aa3b1b
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#8443
passed
5 years ago
Stage: test
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cours.md
+24
-2
24 additions, 2 deletions
cours.md
figs/cubic_multi.svg
+64774
-0
64774 additions, 0 deletions
figs/cubic_multi.svg
scripts/gradients.m
+8
-7
8 additions, 7 deletions
scripts/gradients.m
with
64806 additions
and
9 deletions
cours.md
+
24
−
2
View file @
616fffb3
...
...
@@ -1744,12 +1744,34 @@ $$
f(x,y)=x^2-y^2.
$$
Bien que $
\n
abla f(0,0)=
\v
ec 0$, nous voyons sur la @fig:selle que bien que nous ayons un minimum
dans la direction $x$, nous avons un maximum dans la direction $y$. On se retrouve dans un cas où nous avons un point
d'inflexion.
dans la direction $x$, nous avons un maximum dans la direction $y$. On se retrouve dans un cas où nous avons un point-selle.
Pour pouvoir en dire plus il nous faut étudier les deuxièmes dérivées de $f(x,y)$ comme pour
le cas unidimensionnel.
Prenons un exemple, où (voir @fig:cubic_multi pour voir à quoi elle ressemble)
$$
f(x,y)=x^2+4y^3-12y-2.
$$

{#fig:cubic_multi width="50%"}
Le gradient de $f(x,y)$ est donné par
\b
egin{align}
\f
rac{
\p
artial f}{
\p
artial x}&=2x,
\\
\f
rac{
\p
artial f}{
\p
artial y}&=12y^2-12.
\e
nd{align}
Les coordonnées $(x,y)$ où $
\v
ec
\n
abla f=
\v
ec 0$ sont données par
\b
egin{align}
2x=0
\L
eftrightarrow x = 0,
\\
12y^2-12=0
\L
eftrightarrow y_
\p
m=
\p
m 1.
\e
nd{align}
On a donc deux points $(x,y_{-})=(0,-1)$ et $(x,y_{+})=1$ qui satisfont $
\v
ec
\n
abla f=0$.
Essayons de connaître la nature de ces points. Sont-il des maxima, minima, ou des point-selle?
### La descente de gradient
Revenons à présent à l'optimisation d'une fonction de coût $f(
\v
ec x)$. Pour simplifier considérons
...
...
This diff is collapsed.
Click to expand it.
figs/cubic_multi.svg
0 → 100644
+
64774
−
0
View file @
616fffb3
This diff is collapsed.
Click to expand it.
scripts/gradients.m
+
8
−
7
View file @
616fffb3
clear
all
clf
tx = ty = linspace (-2, 2,
4
1)';
tx
=
ty
=
linspace
(
-
2
,
2
,
2
1
)
'
;
[
xx
,
yy
]
=
meshgrid
(
tx
,
ty
);
tz = xx.^2 + yy.^2;
% tz = xx.^2 + yy.^2;
tz
=
xx
.^
2
+
4
*
yy
.^
3
-
12
*
yy
-
2
;
mesh
(tx, ty, tz)
surf
(
tx
,
ty
,
tz
)
hold
on
[x, y] = meshgrid (-2:0.2:2);
h = quiver (x, y, 2*x, 2*y);
set (h, "maxheadsize", 0.33);
%
[x, y] = meshgrid (-2:0.2:2);
%
h = quiver (x, y, 2*x, 2*y);
%
set (h, "maxheadsize", 0.33);
hold off
%
hold off
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment