TOC
What is the Machine Learning Lens?
Quick introduction of Machine Learning Lens <-
感想 & まとめ
Slide 10
Slide 10 text
Quick introduction of Machine Learning Lens
Structure of the Machine Learning Lens
Business goal
ML problem framing
ML lifecycle architecture diagram
Data processing
Model development
Deployment
Monitoring
Business goal: 概要
機械学習の適用先について検討
PoC を行いビジネスインパクトの検証を行う
プロダクトマネジメント的な側面が強い
Slide 13
Slide 13 text
Business goal: Picked up pillars
MLOE-01: Develop right skills with accountability and
empowerment
機械学習に特化したものではなく通常の Agile について述べている
機械学習で組織づくりについて言及しているドキュメントは珍しい
Two-pizza rule を機械学習の専門家を含めて実現することはチャレンジ
に見える
Slide 14
Slide 14 text
ML problem framing: 概要
ビジネス的な課題を機械学習の課題に落とし込むフェーズ
最適化する指標、計測するアウトカムなどを定量的に定義
機械学習とルールベースとの費用対効果の比較を実施
Slide 15
Slide 15 text
ML problem framing: Picked up pillars (1/2)
MLOE-02: Establish ML roles and responsibilities
機械学習プラットフォームの運用に必要なロール一覧
非常に多岐にわたる
クロスファンクショナルチームが互いにコラボレーションして運用する
ことを想定
Slide 16
Slide 16 text
参考: ロール一覧 (1/2)
Business analyst
Domain expert
Data architect
Data engineer
AI/ML architect
Data scientist
Data analyst
MLOE-02: Establish ML roles and responsibilities - Machine Learning Lens https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-
lens/mloe-02.html
Slide 17
Slide 17 text
参考: ロール一覧 (2/2)
ML engineer
MLOps engineer
IT auditor
Model risk manager
Cloud and security engineer
Software engineer
MLOE-02: Establish ML roles and responsibilities - Machine Learning Lens https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-
lens/mloe-02.html
Slide 18
Slide 18 text
ML problem framing: Picked up pillars (2/2)
MLREL-03: Adopt a machine learning microservice strategy
機械学習の実装にマイクロサービスのパターンを用いることを推奨
Machine Learning Lens をよく表したプラクティス
Slide 19
Slide 19 text
ML lifecycle architecture diagram
Machine Learning Lens におけるもっとも重要なページ
ML lifecycle with data processing sub-phases included
ML lifecycle with detailed phases and expanded components
Lineage tracker
Slide 20
Slide 20 text
ML lifecycle with data processing sub-phases included
Machine Learning Lens の Data Processing 以降のプロセスを細分化
ML lifecycle architecture diagram - Machine Learning Lens https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-lens/ml-lifecycle-
architecture-diagram.html
Slide 21
Slide 21 text
ML lifecycle
with detailed
phases and
expanded
components
ML lifecycle architecture diagram - Machine
https://docs.aws.amazon.com/wellarchitecte
learning-lens/ml-lifecycle-architecture-diagr
Data processing: 概要
機械学習で用いるデータを
用意するフェーズ
データの収集と準備
準備はさらに前処理と特徴
量エンジニアリングに分か
れる
データの探索的な分析のた
めに可視化を行う
ML lifecycle phase - Data processing - Machine Learning Lens
https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-
lens/ml-lifecycle-phase-data-processing.html
Slide 24
Slide 24 text
Data processing: Picked up pillars
MLOE-08: Document data processing
データ処理パイプラインのバージョン管理やドキュメントについて
ドキュメントに含めるべき内容についての例
データソースと収集時刻
データ収集プロセス
データ収集に用いたスクリプト
データ構造
加えた変更や行った処理
MLOE-08: Document data processing - Machine Learning Lens https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-lens/mloe-08.html
Slide 25
Slide 25 text
Model development: 概
要
機械学習モデルの訓練、評
価を行う
手動ではなく自動化した継
続的訓練
Feature Store を前提として
いるのは特徴的
Model training, tuning - Machine Learning Lens
https://docs.aws.amazon.com/wellarchitected/latest/machine-learning-
lens/model-training-tuning.html
Slide 26
Slide 26 text
Model development: Picked up pillars (1/2)
MLSEC-10: Protect against data poisoning threats
訓練データへの悪意あるデータの混入に備えるというプラクティス
たとえば、購入した高評価レビューや、意図的な低評価レビューを念頭
に置いたものと思われる
セキュリティの手法や異常検知アルゴリズムが対策としてあげられてい
る
Slide 27
Slide 27 text
Model development: Picked up pillars (1/2)
MLPER-06: Optimize training and inference instance types
訓練・推論時で最適なインスタンスを選択するというプラクティス
GPU は訓練に向き、CPU は大抵の推論をカバーするとされている
実際はさらに多くの選択肢があるため要検証
Deployment: Picked up pillars
MLSEC-11: Protect against adversarial and malicious activities
悪意のある入力がなされないように保護するプラクティス
機械学習アルゴリズムのロバスト性を確認
同じような入力が繰り返されていないか監視
切り戻しができるようリニエージを管理