Skip to Content
推薦システム実践入門 ―仕事で使える導入ガイド
book

推薦システム実践入門 ―仕事で使える導入ガイド

by 風間 正弘, 飯塚 洸二郎, 松村 優也
May 2022
Beginner to intermediate
296 pages
4h 14m
Japanese
O'Reilly Japan, Inc.
Content preview from 推薦システム実践入門 ―仕事で使える導入ガイド

6章実システムへの組み込み

4章5章では、推薦アルゴリズムについて紹介してきました。それらの推薦アルゴリズムを実サービスへ組み込むためには、データベース、APIを含めた設計が必要になってきます。本章では、次の項目について、推薦システムを構築するために必要な考え方や設計のパターンを紹介します。

  • バッチ推薦/リアルタイム推薦
  • 推薦システムの設計パターン
  • 多段階推薦や近似最近傍探索による工夫
  • ログの設計
  • ニュースサービスにおける実例

6.1 システム概要

6.1.1 バッチ推薦とリアルタイム推薦

機械学習モデルを用いた処理の流れ

図6-1 機械学習モデルを用いた処理の流れ

機械学習モデルを推薦システムに組み込むには、モデルの学習、特徴量の抽出/更新、予測をどのような頻度やタイミングで行うかが重要です。

本章では、バッチ推薦とリアルタイム推薦の2つを以下のように定義します。

表6-1 バッチ推薦とリアルタイム推薦

 モデルの学習特徴量の抽出/更新予測
バッチ推薦バッチバッチバッチ
リアルタイム推薦バッチ or リアルタイムリアルタイムリアルタイム

バッチ推薦は、モデルの学習から予測までの処理を決められた時刻に一括で行うものを指します。一方で、リアルタイム推薦は、特徴量の抽出/更新をユーザーのクリックなどをトリガーとしてリアルタイムに随時行い、予測もユーザーのリクエスト時にリアルタイムに行う方式の推薦を指します。

表6-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

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

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

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也

Publisher Resources

ISBN: 9784873119663Other