Skip to Content
Pythonで動かして学ぶ!あたらしい機械学習の教科書 第3版
book

Pythonで動かして学ぶ!あたらしい機械学習の教科書 第3版

by 伊藤 真
July 2022
Intermediate
440 pages
11h 58m
Japanese
Shōeisha
Content preview from Pythonで動かして学ぶ!あたらしい機械学習の教科書 第3版
234
)
cont.clabel(fmt="%.2f", fontsize=8)
plt.xlabel("$w_0$", fontsize=14)
plt.ylabel("$w_1$", fontsize=14)
plt.grid()
plt.show()
# 実行結果は図 6.7 を参照
リスト 6-1-(6) を実行すると図 6.7 に示したグラフが表示されます。
ロジスティック回帰モデル
平均交差エントロピー誤差関数
等高線表示
この辺に最小値がありそう
E
(w):
w
0
w
1
w
0
w
1
図 6.7:ロジスティック回帰モデルの平均交差エントロピー誤差関数
平均交差エントロピー誤差関数は、風呂敷の対角の隅を持って持ち上げたような形
をしていました。どうやら最小値は、
、 の付近にありそうです。
学習則の導出
6.1.6
さて、交差エントロピー誤差が最小になるパラメータの解析解は求めることができ
ません。
が非線形のシグモイド関数を含んでいるからです。そこで、勾配法を使
って数値的に求めることを考えます。勾配法を使うには、パラメータの偏微分が必要
でした。
それでは、式 6-17 の平均交差エントロピー誤差
を で偏微分したものを
Out
217-262_ch06.indd 234217-262_ch06.indd 234 2022/06/21 19:032022/06/21 19:03
235
6
求めていきましょう。まず、式 6-17 を式 6-18 のように表します。
上記の和の中身は式 6-19 のように定義しました。
微分と和は交換できることから ...
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

データサイエンスのための数学入門 ―Pythonで学ぶ線形代数、確率、統計の基礎

データサイエンスのための数学入門 ―Pythonで学ぶ線形代数、確率、統計の基礎

Thomas Nield, 江川 崇

Publisher Resources

ISBN: 9784798177519