Submit Search
Upload
Deeplearning3
•
0 likes
•
107 views
S
ssuserf94232
Follow
深層学習 誤差逆伝番法
Read less
Read more
Technology
Report
Share
Report
Share
1 of 19
Download now
Download to read offline
Recommended
research.pdf
research.pdf
ssuserf94232
information_fake_2.pdf
information_fake_2.pdf
ssuserf94232
make_information_search.pdf
make_information_search.pdf
ssuserf94232
Hiro it202105
Hiro it202105
ssuserf94232
Deeplearn4
Deeplearn4
ssuserf94232
Machine&data
Machine&data
ssuserf94232
Deep learning2
Deep learning2
ssuserf94232
Deeplearining1
Deeplearining1
ssuserf94232
Recommended
research.pdf
research.pdf
ssuserf94232
information_fake_2.pdf
information_fake_2.pdf
ssuserf94232
make_information_search.pdf
make_information_search.pdf
ssuserf94232
Hiro it202105
Hiro it202105
ssuserf94232
Deeplearn4
Deeplearn4
ssuserf94232
Machine&data
Machine&data
ssuserf94232
Deep learning2
Deep learning2
ssuserf94232
Deeplearining1
Deeplearining1
ssuserf94232
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Deeplearning3
1.
深層学習を知ろう ~誤差逆伝番法編
2.
自己紹介 氏名 渡辺春希 Twitter @haruaya0423 広島市立大学3年知能工学科 出身
静岡 趣味 ポケモン、シャニマス 最近の出来事 ランドロスが辛い。 ラブライブのアニメが来週で終わる。 TOEICの結果が楽しみ
3.
前回までの復習 ・損失関数の値が小さくなれば精度は上がっていった。 ・損失関数の微分を行い勾配降下法でWとbを求めた。 ・更新式はW=W-η 𝑑𝐸(𝑤) 𝑑𝑊 , b=b-η 𝑑𝐸(𝑏) 𝑑𝑏
4.
勾配降下法の問題点 ・実装は簡単だが、数値微分では計算に時間が掛かる。 lim ℎ→0 𝑓 𝑥 +
ℎ − 𝑓(𝑥) ℎ そのため、パラメータの勾配を効率よく求める必要がある。 その方法が誤差逆伝播法である。 今回は計算グラフで説明する。
5.
計算グラフとは? ・計算の過程をグラフで表したもの。簡単な例で示す。 ・1個100円のリンゴを2個買った。合計金額は? 消費税は10%とする。 矢印の上の数字は合計金額を表す。 ノードの中の演算によって金額が変化する。 100 200 ×2 ×1.1 220
6.
計算グラフを変化 ノードの中を演算記号のみにする。また、足し算を追加。 1個100円のリンゴを2個、1個150円のミカンを3個買った。 消費税を10%として、合計金額は? りんごの個数 みかんの個数 × × 2 100 150 3 200 450 + 消費税 1.1 × 650 715
7.
計算グラフの特徴 ・計算を左から右に進める。これを順伝播という。 ・局所的な計算を伝播して、結果を得ることが出来る。 ・逆方向に計算を行うことで 微分を高速に行うことが出来る。 ・前のリンゴの例でいえばリンゴが1円値上がりした時の 支払金金額の変化量を求めることが出来る。
8.
計算グラフでの微分の方法 ・局所的な微分を右から左へと伝達する。 Y=2xの場合を考える。 上流から伝達された値に乗算して前のノードに渡す。 Y=2xならば微分結果の2を掛けることになる。 何故そんなことが可能か? f X Y EE 𝑑𝑦 𝑑𝑥
9.
連鎖律とは? ・合成関数の微分で使用。 以下の式で考える。 Z=𝑡2,t=x+y 𝑑𝑧 𝑑𝑥 を求める場合、 𝑑𝑧 𝑑𝑡 と 𝑑𝑡 𝑑𝑥 の積で求めることが出来る。何故なら 𝑑𝑧 𝑑𝑡 ∗ 𝑑𝑡 𝑑𝑥 = 𝑑𝑧 𝑑𝑥 このようにdtが打ち消されるため。 よって 𝑑𝑧 𝑑𝑥 =2t*1=2tとなる。
10.
加算ノードの逆伝播 ・最終的な出力がLとなる関数で局所的な計算が Z=x+yの逆伝播を考えてみる。 Z=x+yの微分は 𝑑𝑧 𝑑𝑥 =1, 𝑑𝑧 𝑑𝑦 =1となる。よって計算グラフは 順伝播 逆伝播 つまり、上流の値をそのまま流せばよい。 x y + z + 𝑑𝐿 𝑑𝑧 𝑑𝐿 𝑑𝑧 *1 𝑑𝐿 𝑑𝑧 *1
11.
乗算ノードの逆伝播 今度はz=xyという数式で考えてみる。微分結果は 𝑑𝑧 𝑑𝑥 =y, 𝑑𝑧 𝑑𝑦 =x となる。これを計算グラフで表すと つまり、順伝播の時の入力信号をひっくり返した値を 乗算すればいい。 x y × × 𝑑𝐿 𝑑𝑧 *yz 𝑑𝐿 𝑑𝑧 *x 𝑑𝐿 𝑑𝑧 順伝播 逆伝播
12.
リンゴの例で考える。 リンゴの個数 × × 消費税 100 200
220 2.2 1.1 1 1.1 200 2 110 つまり、リンゴの値段が1増えたら支払金額に2.2の大きさで影響する。 個数なら110の大きさで影響する。消費税は200の大きさで影響する。
13.
活性化関数の逆伝播 ReLUの場合 𝑑𝑦 𝑑𝑥 =1(x>0),0(x≦0) となる。 Xが0よりも大きければ上流の値を 流す。 0以下ならば、逆伝播はストップする。 ReLUでは値が更新されない可能性がある。 X>0 X≦0 relu
relu X y X y 0𝑑𝐿 𝑑𝑦 𝑑𝐿 𝑑𝑦 𝑑𝐿 𝑑𝑦
14.
Sigmoid関数の逆伝播 まずSigmoid関数( 1 1+exp(−𝑥) )を 計算グラフで表すと x -1 -x × exp 1 + exp(-x) 1+exp(-x) / /のノードはy= 1 𝑥 の計算を行う。 expはy=exp(x)の計算を行う。 Sigmoidの逆伝播はいくつかのステップに分けて説明する。
15.
ステップ1 x -1 -x exp 1 + exp(-x) 1+exp(-x) / y 𝑑𝐿 𝑑𝑦 - 𝑑𝐿 𝑑𝑦 𝑦2 y= 1 𝑥 をxで微分すると- 1 𝑥2となる。つまり、 𝑑𝑦 𝑑𝑥 = −𝑦2を乗算する。 × x -1 -x exp 1 + exp(-x)
1+exp(-x) / y 𝑑𝐿 𝑑𝑦 - 𝑑𝐿 𝑑𝑦 𝑦2 × ステップ2 加算ノードはそのまま。つまり変化なし。 - 𝑑𝐿 𝑑𝑦 𝑦2
16.
ステップ3 y=exp(x)をxで微分するとexp(x)となる。つまり、 𝑑𝑦 𝑑𝑥 =exp(x)を乗算する。 x -1 -x exp 1 + exp(-x) 1+exp(-x) / y 𝑑𝐿 𝑑𝑦 - 𝑑𝐿 𝑑𝑦 𝑦2 × - 𝑑𝐿 𝑑𝑦 𝑦2 x -1 -x exp 1 + exp(-x)
1+exp(-x) / y 𝑑𝐿 𝑑𝑦 - 𝑑𝐿 𝑑𝑦 𝑦2 × - 𝑑𝐿 𝑑𝑦 𝑦2 - 𝑑𝐿 𝑑𝑦 𝑦2exp(-x) ステップ4 乗算ノードは順伝播の値をひっくり返して乗算。 - 𝑑𝐿 𝑑𝑦 𝑦2exp(-x) 𝑑𝐿 𝑑𝑦 𝑦2exp(-x)
17.
よってSigmoidの逆伝播は x y sigmoid 𝑑𝐿 𝑑𝑦 𝑑𝐿 𝑑𝑦 𝑦2exp(-x) 簡略化するとこんな感じ。 更に 𝑑𝐿 𝑑𝑦 𝑦2exp(-x)は 整理することが出来る。 𝑑𝐿 𝑑𝑦 𝑦2exp(-x)= 𝑑𝐿 𝑑𝑦 1 (1+exp −𝑥
)2exp(-x) = 𝑑𝐿 𝑑𝑦 1 1+exp(−𝑥) exp(−𝑥) 1+exp(−𝑥) = 𝑑𝐿 𝑑𝑦 y(1-y) よってsigmoidは順伝播の出力のみで計算できる。
18.
まとめ ・計算グラフを用いれば計算過程 を視覚的に理解できる。 ・順伝播は通常の計算、逆伝番はノードの微分を求める。 ・誤差逆伝播法を用いることで勾配を 高速に求めることが出来る。
19.
次回予告 最終回 畳み込みニューラルネットワーク
Download now