SlideShare a Scribd company logo
1 of 24
Download to read offline
Confidential. ©2021 DataRobot, Inc. – All rights reserved
DataRobot API はじめの一歩
Agenda
Confidential. ©2021 DataRobot, Inc. – All rights reserved
1. はじめに
2. ポイント1:予測の活用
3. ポイント2:DataRobotの自動化
Confidential. ©2021 DataRobot, Inc. – All rights reserved
田中 翔
AI Engineer @ DataRobot Japan
DataRobot Japanにはじめて採用されたAI Enginnerとして参画。
日本唯一のAI Engineer。
前職の経験を活かし機械学習モデルの運用やモデルのデプロイに
おいてお客様をサポート
2020 - :AI Engineer @ DataRobot, Inc.
2015 - 2020:Data Analyst/Data Engineer @ Recruit Technologies Co.,Ltd.
最近のAIプロジェクト
• 大手通信企業での需要予測のデプロイ支援
• 大手流通企業でのMLOps導入支援
• 大手広告媒体でのコンバージョン予測のデプロイ支援
4
Confidential. ©2018 DataRobot, Inc. – All rights reserved
数値/カテゴリ
時系列
テキスト
画像
データからビジネス価値を生み出すAIプラットフォーム
収益向上
コスト削減
リスク管理
新規事業
など など
位置情報
各種
データ
ビジネス
価値
AI Platform
Auto ML / TS
Data Prep ML Ops
アプリ作成
モデルの
管理と監視
What-ifアプリ
最適化アプリ
システム正常性
モデル性能監視
モデルの
作成
特徴量
エンジニアリング
自動特徴量
検出/生成
分類/回帰
異常検知
時系列
特徴量の
インパクト/作用
予測の説明
データ
エンジニア
データアナリスト
データサイエンティスト
ビジネス
ユーザー
インフラ
エンジニア
自動探索
データ修正
ライブラリ機能
データ連携
データの
準備
データの
管理
モデルの
インサイト
AI Success
Confidential. ©2018 DataRobot, Inc. – All rights reserved
DataRobotはデータサイエンス向けのツー
ルだから開発者は必要ないのでは ...?
Confidential. ©2018 DataRobot, Inc. – All rights reserved
数値/カテゴリ
時系列
テキスト
画像
データからビジネス価値を生み出すAIプラットフォーム
収益向上
コスト削減
リスク管理
新規事業
など など
位置情報
各種
データ
ビジネス
価値
AI Platform
Auto ML / TS
Data Prep ML Ops
アプリ作成
モデルの
管理と監視
What-ifアプリ
最適化アプリ
システム正常性
モデル性能監視
モデルの
作成
特徴量
エンジニアリング
自動特徴量
検出/生成
分類/回帰
異常検知
時系列
特徴量の
インパクト/作用
予測の説明
データ
エンジニア
データアナリスト
データサイエンティスト
ビジネス
ユーザー
インフラ
エンジニア
自動探索
データ修正
ライブラリ機能
データ連携
データの
準備
データの
管理
モデルの
インサイト
AI Success
デベロッパー活躍ポイント1
DataRobot MLOpsによる
モデルのビジネス活用
デベロッパー活躍ポイント2
DataRobot プロダクト全体の自動化
Confidential. ©2021 DataRobot, Inc. – All rights reserved
はじめに ~WebGUI, SDK, APIの定義~
WebGUI :
・DataRobot:「Chromeで見た画面」
API : Application Programming Interface
・DataRobot API :「DataRobotへの操作指示の受付窓口」
SDK : Software development kit
・DataRobot SDK :「DataRobotへのAPI操作手順を使いやすくしたもの」
Curl -H xxxx post http/app.datarobot.com/admin/user xxxxx
WebGUI
API
SDK
「モデリングをせよ」等のユーザの意思をどう伝えるかの違い。
 (内部的にはどの方式であってもAPI通信を実施)
Confidential. ©2021 DataRobot, Inc. – All rights reserved
はじめに ~SDK ver.とDataRobot ver.~
SaaS /DataRobot
(週次更新)
Enterprise / DataRobot
(年約4回の更新)
v6.1 v6.2 v6.3
・SaaS版 DataRobotの開発が先行
・Enterprise版はSaaS版から定期的に断面として作成される。
・バージョンアップ等の運用性は SaaS版が優れ、データの機密保持性は Enterprise版が優れる。
・機能拡張に合わせ SDKバージョンもアップデート。バージョン毎の互換性に注意。
cloud
v2.21 v2.22 v2.24
DataRobot / SDK v2.23
Confidential. ©2021 DataRobot, Inc. – All rights reserved
はじめに ~APIキー~
SDKやAPI接続時に誰が接続しているのか確認するために使います。
Agenda
Confidential. ©2021 DataRobot, Inc. – All rights reserved
1. はじめに
2. ポイント1:予測の活用
3. ポイント2:DataRobotの自動化
Confidential. ©2021 DataRobot, Inc. – All rights reserved
デプロイ済みモデルを利用した予測の活用
Confidential. ©2021 DataRobot, Inc. – All rights reserved
すぐに予測が使える!
Confidential. ©2021 DataRobot, Inc. – All rights reserved
Tips:CSVでの出力(v6.2より確認) Json用にprintとなっている箇所を
修正
‘Accept’ : ...を追記。csv出力になる。
Confidential. ©2021 DataRobot, Inc. – All rights reserved
Tips:CSVへの変換 - jqの利用 -
予測結果のjsonをjqコマンドでパース
コピー用のコマンド
python predict.py [input data] | jq -r ".data[] |
[.predictionValues[0].value, .predictionValues[0].label,
.rowId ] | @csv" > output.csv
Confidential. ©2021 DataRobot, Inc. – All rights reserved
予測の説明なども出力可能!
予測の説明は既出のコードを少しコメ
ントアウトするだけで利用可能!
また、Batch Prediction APIを利用す
るとGCP Cloud StorageやAWS S3な
どをinput/outputに指定可能。もちろ
んDBにも対応。
詳細は予測の使い方の説明は↓
https://app.datarobot.com/docs-jp/predi
ctions/api/new-prediction-api.html (オンプレ
のお客様はオンプレのドメインに変えてください)
Batch Prediction APIに関しては↓
https://app.datarobot.com/docs-jp/predi
ctions/batch/batch-prediction-api/index.
html (オンプレのお客様はオンプレのドメインに変えてください))
Agenda
Confidential. ©2021 DataRobot, Inc. – All rights reserved
1. はじめに
2. ポイント1:予測の活用
3. ポイント2:DataRobotの自動化
Confidential. ©2021 DataRobot, Inc. – All rights reserved
モデルの自動化も可能! 参考:Github DataRobot community code
Confidential. ©2021 DataRobot, Inc. – All rights reserved
もちろん時系列にも対応
既知の特徴量の設定
時間間隔は”日”
複数時系列用のカラム ”Store”
use_time_series:時系列を使うかどうか
feature_settings=は特徴量の設定
参考:Python SDK
Confidential. ©2021 DataRobot, Inc. – All rights reserved
参考資料はこちら
DataRobot community
開発者向けラーニングパス
DataRobot Python Package
document
Confidential. ©2021 DataRobot, Inc. – All rights reserved
上級者向け
API Reference — DataRobot Python
Client 2.24.0 documentation
Examples — DataRobot Python
Client 2.24.0 documentation
Confidential. ©2021 DataRobot, Inc. – All rights reserved
トレーニングも用意
一度、予測の種類など体系的に学びたいというかたは
DRU MLOps1のご受講をオススメします!
Confidential. ©2021 DataRobot, Inc. – All rights reserved
Q&A
DataRobot_APIはじめの一歩_ディベロッパーミートアップvol.1

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

DataRobot_APIはじめの一歩_ディベロッパーミートアップvol.1

  • 1.
  • 2. Confidential. ©2021 DataRobot, Inc. – All rights reserved DataRobot API はじめの一歩
  • 3. Agenda Confidential. ©2021 DataRobot, Inc. – All rights reserved 1. はじめに 2. ポイント1:予測の活用 3. ポイント2:DataRobotの自動化
  • 4. Confidential. ©2021 DataRobot, Inc. – All rights reserved 田中 翔 AI Engineer @ DataRobot Japan DataRobot Japanにはじめて採用されたAI Enginnerとして参画。 日本唯一のAI Engineer。 前職の経験を活かし機械学習モデルの運用やモデルのデプロイに おいてお客様をサポート 2020 - :AI Engineer @ DataRobot, Inc. 2015 - 2020:Data Analyst/Data Engineer @ Recruit Technologies Co.,Ltd. 最近のAIプロジェクト • 大手通信企業での需要予測のデプロイ支援 • 大手流通企業でのMLOps導入支援 • 大手広告媒体でのコンバージョン予測のデプロイ支援 4
  • 5. Confidential. ©2018 DataRobot, Inc. – All rights reserved 数値/カテゴリ 時系列 テキスト 画像 データからビジネス価値を生み出すAIプラットフォーム 収益向上 コスト削減 リスク管理 新規事業 など など 位置情報 各種 データ ビジネス 価値 AI Platform Auto ML / TS Data Prep ML Ops アプリ作成 モデルの 管理と監視 What-ifアプリ 最適化アプリ システム正常性 モデル性能監視 モデルの 作成 特徴量 エンジニアリング 自動特徴量 検出/生成 分類/回帰 異常検知 時系列 特徴量の インパクト/作用 予測の説明 データ エンジニア データアナリスト データサイエンティスト ビジネス ユーザー インフラ エンジニア 自動探索 データ修正 ライブラリ機能 データ連携 データの 準備 データの 管理 モデルの インサイト AI Success
  • 6. Confidential. ©2018 DataRobot, Inc. – All rights reserved DataRobotはデータサイエンス向けのツー ルだから開発者は必要ないのでは ...?
  • 7. Confidential. ©2018 DataRobot, Inc. – All rights reserved 数値/カテゴリ 時系列 テキスト 画像 データからビジネス価値を生み出すAIプラットフォーム 収益向上 コスト削減 リスク管理 新規事業 など など 位置情報 各種 データ ビジネス 価値 AI Platform Auto ML / TS Data Prep ML Ops アプリ作成 モデルの 管理と監視 What-ifアプリ 最適化アプリ システム正常性 モデル性能監視 モデルの 作成 特徴量 エンジニアリング 自動特徴量 検出/生成 分類/回帰 異常検知 時系列 特徴量の インパクト/作用 予測の説明 データ エンジニア データアナリスト データサイエンティスト ビジネス ユーザー インフラ エンジニア 自動探索 データ修正 ライブラリ機能 データ連携 データの 準備 データの 管理 モデルの インサイト AI Success デベロッパー活躍ポイント1 DataRobot MLOpsによる モデルのビジネス活用 デベロッパー活躍ポイント2 DataRobot プロダクト全体の自動化
  • 8. Confidential. ©2021 DataRobot, Inc. – All rights reserved はじめに ~WebGUI, SDK, APIの定義~ WebGUI : ・DataRobot:「Chromeで見た画面」 API : Application Programming Interface ・DataRobot API :「DataRobotへの操作指示の受付窓口」 SDK : Software development kit ・DataRobot SDK :「DataRobotへのAPI操作手順を使いやすくしたもの」 Curl -H xxxx post http/app.datarobot.com/admin/user xxxxx WebGUI API SDK 「モデリングをせよ」等のユーザの意思をどう伝えるかの違い。  (内部的にはどの方式であってもAPI通信を実施)
  • 9. Confidential. ©2021 DataRobot, Inc. – All rights reserved はじめに ~SDK ver.とDataRobot ver.~ SaaS /DataRobot (週次更新) Enterprise / DataRobot (年約4回の更新) v6.1 v6.2 v6.3 ・SaaS版 DataRobotの開発が先行 ・Enterprise版はSaaS版から定期的に断面として作成される。 ・バージョンアップ等の運用性は SaaS版が優れ、データの機密保持性は Enterprise版が優れる。 ・機能拡張に合わせ SDKバージョンもアップデート。バージョン毎の互換性に注意。 cloud v2.21 v2.22 v2.24 DataRobot / SDK v2.23
  • 10. Confidential. ©2021 DataRobot, Inc. – All rights reserved はじめに ~APIキー~ SDKやAPI接続時に誰が接続しているのか確認するために使います。
  • 11. Agenda Confidential. ©2021 DataRobot, Inc. – All rights reserved 1. はじめに 2. ポイント1:予測の活用 3. ポイント2:DataRobotの自動化
  • 12. Confidential. ©2021 DataRobot, Inc. – All rights reserved デプロイ済みモデルを利用した予測の活用
  • 13. Confidential. ©2021 DataRobot, Inc. – All rights reserved すぐに予測が使える!
  • 14. Confidential. ©2021 DataRobot, Inc. – All rights reserved Tips:CSVでの出力(v6.2より確認) Json用にprintとなっている箇所を 修正 ‘Accept’ : ...を追記。csv出力になる。
  • 15. Confidential. ©2021 DataRobot, Inc. – All rights reserved Tips:CSVへの変換 - jqの利用 - 予測結果のjsonをjqコマンドでパース コピー用のコマンド python predict.py [input data] | jq -r ".data[] | [.predictionValues[0].value, .predictionValues[0].label, .rowId ] | @csv" > output.csv
  • 16. Confidential. ©2021 DataRobot, Inc. – All rights reserved 予測の説明なども出力可能! 予測の説明は既出のコードを少しコメ ントアウトするだけで利用可能! また、Batch Prediction APIを利用す るとGCP Cloud StorageやAWS S3な どをinput/outputに指定可能。もちろ んDBにも対応。 詳細は予測の使い方の説明は↓ https://app.datarobot.com/docs-jp/predi ctions/api/new-prediction-api.html (オンプレ のお客様はオンプレのドメインに変えてください) Batch Prediction APIに関しては↓ https://app.datarobot.com/docs-jp/predi ctions/batch/batch-prediction-api/index. html (オンプレのお客様はオンプレのドメインに変えてください))
  • 17. Agenda Confidential. ©2021 DataRobot, Inc. – All rights reserved 1. はじめに 2. ポイント1:予測の活用 3. ポイント2:DataRobotの自動化
  • 18. Confidential. ©2021 DataRobot, Inc. – All rights reserved モデルの自動化も可能! 参考:Github DataRobot community code
  • 19. Confidential. ©2021 DataRobot, Inc. – All rights reserved もちろん時系列にも対応 既知の特徴量の設定 時間間隔は”日” 複数時系列用のカラム ”Store” use_time_series:時系列を使うかどうか feature_settings=は特徴量の設定 参考:Python SDK
  • 20. Confidential. ©2021 DataRobot, Inc. – All rights reserved 参考資料はこちら DataRobot community 開発者向けラーニングパス DataRobot Python Package document
  • 21. Confidential. ©2021 DataRobot, Inc. – All rights reserved 上級者向け API Reference — DataRobot Python Client 2.24.0 documentation Examples — DataRobot Python Client 2.24.0 documentation
  • 22. Confidential. ©2021 DataRobot, Inc. – All rights reserved トレーニングも用意 一度、予測の種類など体系的に学びたいというかたは DRU MLOps1のご受講をオススメします!
  • 23. Confidential. ©2021 DataRobot, Inc. – All rights reserved Q&A