Skip to Content
実践 機械学習システム
book

実践 機械学習システム

by Willi Richert, Luis Pedro Coelho, 斎藤 康毅
October 2014
Intermediate to advanced
288 pages
6h 27m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 機械学習システム
7.3
P
N
より大きい場合
151
で、“改悪”されたということになります。
訓練誤差と汎化誤差
特徴量の数がサンプルデータの数を上回ると、最小二乗法では常に訓練誤差が
0
になりま
す。しかし、それはそのモデルが高い汎化能力を持つということを意味しません。実際、訓練
誤差は
0
になりますが、全く使えないモデルであることがほとんどです。
この過学習への対応策としてよく取られる方法が「正則化」です。elastic netを用いて罰則パラメー
タ(λ)を1として交差検定を行った場合、RMSE0.4になります。これは常に平均値を予測結果と
する場合よりも良い結果です。現実の問題では、ほとんどの場合、完璧な予測を行うことは不可能で
す。そのため、精度の限界を見極めることは困難であると言えます。
7.3.2
 ハイパラメータの賢い設定方法
先ほどの例では、罰則パラメータを
1
に設定しました。もちろん、それは
2
に設定することもできま
す(
0.5
200
2000000
にも設定できます)。そして、設定した値に応じて、結果も異なることにな
ります。もし大きい値を設定した場合、それは未学習の可能性が高くなります。極端な場合として、
学習の結果、全ての係数が0になります。また、極端に小さい値を設定した場合、それは過学習であ
り、最小二乗法に近づくことになります。過学習の状態では汎化能力が低くなります。
それでは最適なパラメータをどのように選択すべきでしょうか? 最適なパラメータを設定する問題
は、機械学習でよく遭遇する問題です。一般的な ...
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

実践 時系列解析 ―統計と機械学習による予測

実践 時系列解析 ―統計と機械学習による予測

Aileen Nielsen, 山崎 邦子, 山崎 康宏

Publisher Resources

ISBN: 9784873116983Other