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.
055
2.1
結局、機械学習では何をやっているのか?
機械学習も一種の最適化?
先のImportant の「関数の入力パラメータと学習パラメータ」で唐突に「機械
学習の学習時は学習パラメータが最適化のパラメータになる」と出てきて、
これはどういう意味か? となった読者もいるでしょう。ここまで、機械学
習は「データから法則を導くこと」「パラメトリック回帰はいわゆるフィッ
ティング」と説明してきましたが、具体的にどのように機械学習を行うかは
説明してきませんでした。それではまず、フィッティングをどのようにする
かを思い出してみましょう。フィッティングでは「最小二乗法」が用いられ
ます。最小二乗法では、数式の値(パラメトリック回帰の予測値)とデータ
の値との差の二乗の和が最小になるように、フィッティングパラメータ(学
習パラメータ)を調整します。
具体例として、 2.1.8 のようにデータを 2次関数でフィッティングする場合
を考えてみましょう。この場合は、
のべき乗の項の係数
フィッティングパラメータとなります。そこで、
の値の組合せを様々に変
えて、最もデータによく当てはまる組合せを求めます。これがパラメトリッ
ク回帰の「学習」です。このとき、当てはまり具合を表す指標を損失関数と
いい、損失関数に予測値とデータ値との差の二乗の和を用いて最小化する場
合を最小二乗法と呼びます。なお、和では大きな値になってしまい、二乗の
平均値としても大小関係は変わらないため、二乗の和ではなく、平均二乗誤
差(Mean ...
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