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の実践上の問題と解決

5章対応性のある運用のパターン

機械学習モデルの目的は、訓練データに含まれない未知のデータに対して正しく推論することです。そのため、一旦訓練を終えたモデルは、本番環境へのデプロイ後、現場のリクエストに応じて適切な予測結果を出力し続けなければなりません。こうした本番環境向けのソフトウェアは、対応性(resilience)、つまり人の手をほとんどかけずに動作し続けることが望ましいのは言うまでもありません。本章で紹介するデザインパターンは、本番環境の機械学習モデルがさまざまな状況で直面する対応性や回復性に関する問題を解決するのに役立ちます。

ステートレスサービング関数パターンは、運用基盤に1秒あたり数千件から数百万件の予測リクエストがあったとしても処理できるほどのスケーラビリティを提供します。バッチサービングパターンは、運用基盤が不定期または定期的に受け取る数百万件から数十億件の予測リクエストを非同期的に処理できるようにします。これらのパターンは、対応性のみならず、機械学習モデルの開発者とユーザとの間の結合関係(coupling)を弱める観点からも有用です。

継続的モデル評価パターンは、デプロイしたモデルが劣化してすでに目的を果たせなくなっているときに、それを検知し対応するものです。2段階予測パターンは、モデルを分散型デバイスにデプロイしなければならないときでも、モデル本来の機能や性能を維持できるようにします。キー付き予測パターンは、本章で説明するデザインパターンのいくつかをスケーラブルに実装するために必要です。

5.1 デザインパターン16:ステートレスサービング関数(Stateless Serving Function)

ステートレスサービング関数パターンは、本番の機械学習システムが受け取る1秒あたり数千件から数百万件の予測リクエストを同期処理できるようにします。このパターンに基づいた本番機械学習システムは、訓練済みモデルのアーキテクチャや重みをステートレス関数(stateless ...

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