Skip to Content
機械学習デザインパターン ―データ準備、モデル構築、MLOpsの実践上の問題と解決
book

機械学習デザインパターン ―データ準備、モデル構築、MLOpsの実践上の問題と解決

by Valliappa Lakshmanan, Sara Robinson, Michael Munn, 鷲崎 弘宜, 竹内 広宜, 名取 直毅, 吉岡 信和
October 2021
Beginner to intermediate
414 pages
6h 25m
Japanese
O'Reilly Japan, Inc.
Content preview from 機械学習デザインパターン ―データ準備、モデル構築、MLOpsの実践上の問題と解決

4章モデル訓練のパターン

機械学習モデルは通常、反復的に訓練されます。この反復的なプロセスを、一般に訓練ループ(training loop)と呼びます。この章ではまず、典型的な訓練ループの概要を説明し、続いて、典型的な訓練ループとは異なる方法が必要な場合を示します。

4.1 典型的な訓練ループ

機械学習モデルの訓練には、さまざまなタイプの最適化手法が用いられます。例えば決定木では、しばしば情報利得(information gain)と呼ばれる尺度に基づいて各ノードが構築されます。遺伝的アルゴリズムは、モデルのパラメータを遺伝子のような形で表現し、進化論に基づいて最適化します。これらに対し、機械学習モデルのパラメータを決定する最も一般的な手法は、最急降下法(gradient descent)です。

4.1.1 確率的勾配降下法

大規模なデータセットでは、ミニバッチごとに最急降下法を適用することで、線形モデルやブースティング木から深層ニューラルネットワーク(deep neural networks:DNN)、サポートベクターマシン(support vector machines:SVM)までのあらゆるものを訓練できます。これは確率的勾配降下法(stochastic gradient descent:SGD)と呼ばれ、その拡張であるAdamやAdagradなどは、今日の機械学習フレームワークで事実上標準となっている最適化手法です。

AdamやAdagradをはじめとするSGDでは、訓練データセットを小さく分割したバッチを単位とする訓練の繰り返しが必要です。つまり、機械学習モデルの訓練にはループが伴います。SGDで求まる最小解は閉形式(有限個の初等関数の合成による表現、closed-form)ではないため、モデルの収束を別途、見届けなければなりません。 ...

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

プログラミング・ビットコイン ―ゼロからビットコインをプログラムする方法

プログラミング・ビットコイン ―ゼロからビットコインをプログラムする方法

Jimmy Song, 中川 卓俊, 住田 和則, 中村 昭雄, 星野 靖子
情報アーキテクチャ 第4版 ―見つけやすく理解しやすい情報設計

情報アーキテクチャ 第4版 ―見つけやすく理解しやすい情報設計

Louis Rosenfeld, Peter Morville, Jorge Arango, 篠原 稔和, 岡 真由美
行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也
戦略的データサイエンス入門 ―ビジネスに活かすコンセプトとテクニック

戦略的データサイエンス入門 ―ビジネスに活かすコンセプトとテクニック

Foster Provost, Tom Fawcett, 竹田 正和, 古畠 敦, 瀬戸山 雅人, 大木 嘉人, 藤野 賢祐, 宗定 洋平, 西谷 雅史, 砂子 一徳, 市川 正和, 佐藤 正士

Publisher Resources

ISBN: 9784873119564Other