Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 951ff42

Browse files
code update
1 parent 1147eb6 commit 951ff42

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

‎03. Gradient Descent and its variants/.ipynb_checkpoints/3.06 Implementing Several Variants of Gradient Descent from Scratch-checkpoint.ipynb‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@
649649
"\n",
650650
"$$v_t = \\gamma v_{t-1} + \\eta \\nabla_\\theta J( \\theta) -- (8) $$\n",
651651
"\n",
652+
"Update theta by: \n",
652653
"$${\\theta = \\theta - v_t } -- (9) $$"
653654
]
654655
},
@@ -763,7 +764,7 @@
763764
"\n",
764765
"$$v_t = \\gamma v_{t-1} + \\eta \\nabla_\\theta J( \\theta - \\gamma v_{t-1} ) -- (10) $$\n",
765766
"\n",
766-
"\n",
767+
"Update theta by:\n",
767768
"$${\\theta = \\theta - v_t } -- (11) $$"
768769
]
769770
},
@@ -980,14 +981,16 @@
980981
"\n",
981982
"The update equation of AdaDelta is expressed as:\n",
982983
"\n",
984+
"Running average of gradients:\n",
983985
"$$E\\left[g^{2}\\right]_{t}=\\gamma E\\left[g^{2}\\right]_{t-1}+(1-\\gamma) g_{t}^{2} -- (13) $$\n",
984986
"\n",
987+
"Compute delta:\n",
985988
"$$ \\nabla \\theta_{t}=-\\frac{R M S[\\Delta \\theta]_{t-1}}{R M S\\left[g_{t}\\right]} \\cdot g_{t}^{i} -- (14) $$\n",
986989
"\n",
987-
"\n",
990+
"Running averge of parameter update:\n",
988991
"$$ E\\left[\\Delta \\theta^{2}\\right]_{t}=\\gamma E\\left[\\Delta \\theta^{2}\\right]_{t-1}+(1-\\gamma) \\Delta \\theta_{t}^{2} -- (15) $$\n",
989992
"\n",
990-
"\n",
993+
"Update theta:\n",
991994
"$$ \\theta_{t}^{i}=\\theta_{t-1}^{i}+\\nabla \\theta_{t} -- (16) $$"
992995
]
993996
},

‎03. Gradient Descent and its variants/3.06 Implementing Several Variants of Gradient Descent from Scratch.ipynb‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@
649649
"\n",
650650
"$$v_t = \\gamma v_{t-1} + \\eta \\nabla_\\theta J( \\theta) -- (8) $$\n",
651651
"\n",
652+
"Update theta by: \n",
652653
"$${\\theta = \\theta - v_t } -- (9) $$"
653654
]
654655
},
@@ -763,7 +764,7 @@
763764
"\n",
764765
"$$v_t = \\gamma v_{t-1} + \\eta \\nabla_\\theta J( \\theta - \\gamma v_{t-1} ) -- (10) $$\n",
765766
"\n",
766-
"\n",
767+
"Update theta by:\n",
767768
"$${\\theta = \\theta - v_t } -- (11) $$"
768769
]
769770
},
@@ -980,14 +981,16 @@
980981
"\n",
981982
"The update equation of AdaDelta is expressed as:\n",
982983
"\n",
984+
"Running average of gradients:\n",
983985
"$$E\\left[g^{2}\\right]_{t}=\\gamma E\\left[g^{2}\\right]_{t-1}+(1-\\gamma) g_{t}^{2} -- (13) $$\n",
984986
"\n",
987+
"Compute delta:\n",
985988
"$$ \\nabla \\theta_{t}=-\\frac{R M S[\\Delta \\theta]_{t-1}}{R M S\\left[g_{t}\\right]} \\cdot g_{t}^{i} -- (14) $$\n",
986989
"\n",
987-
"\n",
990+
"Running averge of parameter update:\n",
988991
"$$ E\\left[\\Delta \\theta^{2}\\right]_{t}=\\gamma E\\left[\\Delta \\theta^{2}\\right]_{t-1}+(1-\\gamma) \\Delta \\theta_{t}^{2} -- (15) $$\n",
989992
"\n",
990-
"\n",
993+
"Update theta:\n",
991994
"$$ \\theta_{t}^{i}=\\theta_{t-1}^{i}+\\nabla \\theta_{t} -- (16) $$"
992995
]
993996
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /