Skip to Content
ゼロから作るDeep Learning ❸ ―フレームワーク編
book

ゼロから作るDeep Learning ❸ ―フレームワーク編

by 斎藤 康毅
April 2020
Intermediate to advanced
552 pages
6h 13m
Japanese
O'Reilly Japan, Inc.
Content preview from ゼロから作るDeep Learning ❸ ―フレームワーク編

ステップ29ニュートン法を用いた最適化(手計算)

前ステップでは、ローゼンブロック関数の最小値を、勾配降下法を使って求めました。しかしそこでは、勾配を求める作業を50,000回近く繰り返して、ようやく目的地に辿り着きました。その例が示すように、勾配降下法は、一般的には収束が遅いという欠点があります。

勾配降下法に代わる手法で、より収束の速い手法はいくつかあります。その中でも有名なのが、ニュートン法を用いた最適化です。ニュートン法による最適化を行えば、より少ないステップ数で最適解に辿り着く可能性が高まります。たとえば、私たちが前ステップで取り組んだ問題においては、図29-1のような結果が得られます。

勾配降下法での更新経路(左図)とニュートン法を用いた最適化手法での更新経路(右図)

図29-1 勾配降下法での更新経路(左図)とニュートン法を用いた最適化手法での更新経路(右図)

図29-1を見ると、勾配降下法が“谷”に苦戦しながら、ゆっくりと目的値に向かっているのに対して、ニュートン法は谷を飛び越し、一気に目的地に辿り着きます。その更新回数は、わずか6回です! 勾配降下法は5万回近くも必要だった更新が、ニュートン法ではわずか6回で済むという劇的な差が生まれました。

[警告]

ローゼンブロック関数では、勾配降下法とニュートン法でステップ数に大きな違いが出ました。もちろんこの回数は、初期値や学習率などの設定値によって大きく変わります。実際、そこまで大きな違いが見られないケースも多々あります。一般的には、初期値が解に十分近ければ、ニュートン法の方が早く収束します。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ゼロから作るDeep Learning ❻ ―LLM編

ゼロから作るDeep Learning ❻ ―LLM編

斎藤 康毅

Publisher Resources

ISBN: 9784873119069Publisher Website