Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
MLモデル実装にStrategy パターンを導入してみた
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
xthixsl_ml
March 04, 2026
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
MLモデル実装にStrategy パターンを導入してみた
xthixsl_ml
March 04, 2026
More Decks by xthixsl_ml
See All by xthixsl_ml
State-Aware RAGをAmazon Bedrock とAmazon S3 Vectorsで再現してみた
xthixsl_ml
1
48
制限付きRAGを試してみた
xthixsl_ml
0
29
Vibe ML Model Training, Tracking and Kaizen
xthixsl_ml
0
47
Strands Agents Evals SDK 試してみた ~ Experiment Generator編 ~
xthixsl_ml
0
42
TorchServeからFastAPIにした話
xthixsl_ml
0
36
全部をAIエージェントにしない設計: AWS Step Functions × Amazon Bedrock AgentCore × Strands Agents Multiagent Graphで不確実性を考慮するワークフロー
xthixsl_ml
0
220
BentoML使ってみた
xthixsl_ml
0
65
社内AIハッカソンでAmazon Bedrock AgentCore 使ってみた
xthixsl_ml
2
240
新卒エンジニアが挑む、AWS Knowledge MCP Serverを活用したキャッチアップ術
xthixsl_ml
0
70
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
330
A Soul's Torment
seathinner
6
2.9k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
390
The Spectacular Lies of Maps
axbom
PRO
1
800
The Curse of the Amulet
leimatthew05
1
13k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
1.7k
Optimizing for Happiness
mojombo
378
71k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
440
Transcript
©Fusic Co., Ltd. 0 MLモデル実装にStrategy パターンを 導入してみた 2026.03.04 佐藤 礼央奈
X: @xthixsl_ml Python Meetup Fukuoka #6
©Fusic Co., Ltd. 1 自己紹介 はじめに 佐藤 礼央奈 R E
O N A S AT O 株式会社Fusic エンジニア 東京の大学を卒業。在学中にエンジニアとして3社で約2年半の長期イン ターンを経験。機械学習や生成AIの研究開発に携わる中で、MLモデルの 本番運用に興味を持ちMLOpsに関心を深める。生成AIも取り入れた開発 や、AWSパートナー企業での経験から、同領域に強みを持つFusicに魅力 を感じ、2025年に新卒入社。
©Fusic Co., Ltd. 2 MLのモデル比較、if/elifで切り替えていました
©Fusic Co., Ltd. 3 if/elif 分岐 • モデルが増えるたびに分岐が膨らみ • 責務が集中して保守しづらい
Before Strategy パターン • 各モデルを独立クラスに分離し • 共通インターフェースで差し替え可能にする After Strategyパターン = アルゴリズムを分離し差し替え可能にする
©Fusic Co., Ltd. 4 Strategy fit / predict の 共通インターフェースを定義
01 RF・LightGBM・NN 等を 個別クラスとして実装 ConcreteStrategy 02 Context 戦略を保持し 学習・予測・評価を実行 03 fit / predict の共通インターフェースで構成を統一
©Fusic Co., Ltd. 5 Strategy fit / predict の 共通インターフェースを定義
01 RF・LightGBM・NN 等を 個別クラスとして実装 ConcreteStrategy 02 Context 戦略を保持し 学習・予測・評価を実行 03 fit / predict の共通インターフェースで構成を統一 利用者がわかりやすいかつ、 新しいモデルを追加・実験がしやすくなった。
©Fusic Co., Ltd. 6 Strategy fit / predict の 共通インターフェースを定義
01 RF・LightGBM・NN 等を 個別クラスとして実装 ConcreteStrategy 02 Context 戦略を保持し 学習・予測・評価を実行 03 fit / predict の共通インターフェースで構成を統一
©Fusic Co., Ltd. 7 まとめ 各モデルの実装詳細を個別クラスに閉じ込め呼び出し側は共通操作だけに集中 新しいモデルの追加はクラス1つ既存コードの修正は不要 Point.01 Point.02
©Fusic Co., Ltd. 8 Thank You We are Hiring! https://recruit.fusic.co.jp/
ご清聴いただきありがとうございました