Skip to Content
AI開発力を鍛える!機械学習と最適化による問題解決講座
book

AI開発力を鍛える!機械学習と最適化による問題解決講座

by 沓掛 健太朗
April 2025
Intermediate
240 pages
6h 56m
Japanese
Shōeisha
Content preview from AI開発力を鍛える!機械学習と最適化による問題解決講座
2.
3.
0.
1.
129
2.10
2.10
損失関数と評価関数には
ばよい か?
前節では、機械学習の予測精度を評価する指標として、R2およびRMSE(ま
たはMAE)の特徴と用いる際に気を付けることを見てきました。本節では、
RMSEとMAEの違いに注目しながら、学習の損失関数とモデルの評価関数の
違いをおさらいし、さらに一歩踏み込んで、RMSEとMAEの損失関数・評価
関数としての特徴を学びます。
学習の損失関数とモデルの評価関数の違いとは?
 まず、平均二乗誤差(MSE)と二乗平均平方根誤差(RMSE)、平均絶対誤差
(MAE)の定義をおさらいしましょう。
 ここで、  、  は
番目のデータの
の値とその予測値、
はデータの数です。
MSEは 2 乗ですので、そのままでは、
の値と比較することはできません。そこ
で平方根を取ったRMSEにすることで、
と同じ単位となり、
の値の尺度で、誤
差を評価することができます。またMAEとも同じ単位になるため、両者を比較
することができます。そこで、RMSEとMAEの違いを浮かび上がらせるために、
2.10.1 のように、外れ値を持つデータに対して、それぞれを求めてみましょう。
外れ値の存在によって、MAEとRMSEのどちらがより大きくなるでしょうか?
2.10.1
130
0
1
2
3
2


      
2.10.1 MAEとRMSEへの外れ値の影響の大きさ比較
 
2.10.2 に、外れ値がある場合とない場合について、 ...
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

マルチクラウドセキュリティの教科書 クラウド横断で実現する堅牢なセキュリティ基盤

マルチクラウドセキュリティの教科書 クラウド横断で実現する堅牢なセキュリティ基盤

大島 悠司, 垣見 宥太, 金光 高宏, 蒲 晃平, 工藤 匡浩, 小西 陽平, 白濱 亮, 平田 一樹, 矢野 純平, 山田 康博, 吉江 瞬

Publisher Resources

ISBN: 9784798189413