SlideShare a Scribd company logo
Lars Gregori, SAP Hybris Labs
April 13, 2018
Minecraft and Reinforcement Learning
AI Hacking
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Minecraft
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
Minecraft
Markus "Notch" Persson
Mojang AB
Best-selling PC game of all time
Exploration
Resource gathering
Crafting
Combat
Sandbox construction game
Creative + building aspects
Three-dimensional environment
Project Malmo
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
Project Malmo
Open Source (Github)
Microsoft Research Lab
Based on
Minecraft / Minecraft Forge
Agents written in
Python, Lua, C++, C#,
Java, Torch, ALE
Mission XML
WorldState
Send Command
Reinforcement Learning
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
Reinforcement Learning
Supervised
Learning
Unsupervised
Learning
Reinforcement
Learning
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
Reinforcement Learning
Observation Reward Action
Environment
Agent
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
“Reinforcement learning is like
trial-and-error learning.”David Silver
Reinforcement Learning
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Public
"11
Reinforcement Learning: An Introduction
Richard S. Sutton and Andrew G. Barto

(1998)
Reinforcement Learning
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Reinforcement Learning Example
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Public
"13
Q-Learning
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Public
"14
Q-Learning
100 

-1
99.0
α - step-size parameter (1.0)
γ - discount-rate parameter (0.8)
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Public
"15
Q-Learning
100 

-1
99.0
78.2
-101.0
α - step-size parameter (1.0)
γ - discount-rate parameter (0.8)
-100 

-1
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Public
"16
Q-Learning
99.0000000
78.2000000
61.5600000
48.2480000
37.5984000
29.0787200
22.2629760
16.8103808
12.4483046
8.9586437
99
78
61
48 37
29
2216
128
Deep Reinforcement Learning
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
Deep Reinforcement Learning
Supervised
Learning
Unsupervised
Learning
Reinforcement
Learning
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
Deep Reinforcement Learning
https://youtu.be/TmPfTpjtdgg
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Thank you.
Contact information:
Lars Gregori
@choas
PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
#AIandMinecraft @choas
The Malmo Platform for Artificial Intelligence Experimentation. Proc. 25th International Joint
Conference on Artificial Intelligence http://www.ijcai.org/Proceedings/2016
Project Malmo https://www.microsoft.com/en-us/research/project/project-malmo/
Project Malmo (Github) https://github.com/Microsoft/malmo
Reinforcement Learning: An Introduction - ISBN-13: 978-0262193986

2nd Version online
YouTube RL Course by David Silver
Links
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.
The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components 

of other software vendors. National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated
companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are 

set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release
any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/
or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information
in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various 

risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements,
and they should not be relied upon in making purchasing decisions.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) 

in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. 

See http://global.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
© 2018 SAP SE or an SAP affiliate company. All rights reserved.

More Related Content

PDF
AI and Minecraft
PDF
The Cloud Platform Play
PDF
sps1-RecordOfAchievement
PDF
#askSAP Analytics Innovations Community Call: Delivering the Intelligent Ente...
PDF
More than colors and white spaces – designing enterprise applications - Janin...
PDF
SAP HANA Cloud Platform - The big picture
PDF
Quantify your drive: IoT on a personal scale with SAP technologies
PPTX
CD Winter 2017 - SAP Industry 4.0
AI and Minecraft
The Cloud Platform Play
sps1-RecordOfAchievement
#askSAP Analytics Innovations Community Call: Delivering the Intelligent Ente...
More than colors and white spaces – designing enterprise applications - Janin...
SAP HANA Cloud Platform - The big picture
Quantify your drive: IoT on a personal scale with SAP technologies
CD Winter 2017 - SAP Industry 4.0

Similar to Minecraft and Reinforcement Learning (20)

PDF
Sales, Marketing and Artificial intelligence: Science Fiction or Reality?
PDF
Innovate and Extend with an Agile Digital Enterprise Platform
PPTX
SAP Developer Relations for Nextgen
PDF
SAP Developers Update
PDF
#AskSAP Analytics Innovations Community Call: SAP Analytics Fall 2018 Innovat...
PDF
No Egos, No Agendas, No Bullshit
 
PDF
SAP Leonardo Machine Learning - Making Business Applications Intelligent
PDF
SAP Analytics Overview and Strategy
PDF
SAP Cloud Platform x Microsoft Graph
PDF
SAP Cloud Platform Product Overview
PDF
Using a trained model on your mobile device
PDF
Using a trained model on your mobile device
PDF
Performance Support Architektur & Organisation
PDF
SAP Hybris for Student Engagement
PDF
#askSAP: Journey to the Cloud: SAP Strategy and Roadmap for Cloud and Hybrid ...
PDF
Masterclass Machine Learning (Ronald Kleijn)
PDF
#askSAP Analytics Innovations Community Call: SAP Predictive Analytics
PDF
Building cool native ios enterprise apps with sap cloud platform sdk for ios
PDF
SAP Inside Track Belgium 2018 - SAP Leonardo Machine Learning Demystified
PDF
Enable End-to-End Digital Government Transformation with SAP Solutions
Sales, Marketing and Artificial intelligence: Science Fiction or Reality?
Innovate and Extend with an Agile Digital Enterprise Platform
SAP Developer Relations for Nextgen
SAP Developers Update
#AskSAP Analytics Innovations Community Call: SAP Analytics Fall 2018 Innovat...
No Egos, No Agendas, No Bullshit
 
SAP Leonardo Machine Learning - Making Business Applications Intelligent
SAP Analytics Overview and Strategy
SAP Cloud Platform x Microsoft Graph
SAP Cloud Platform Product Overview
Using a trained model on your mobile device
Using a trained model on your mobile device
Performance Support Architektur & Organisation
SAP Hybris for Student Engagement
#askSAP: Journey to the Cloud: SAP Strategy and Roadmap for Cloud and Hybrid ...
Masterclass Machine Learning (Ronald Kleijn)
#askSAP Analytics Innovations Community Call: SAP Predictive Analytics
Building cool native ios enterprise apps with sap cloud platform sdk for ios
SAP Inside Track Belgium 2018 - SAP Leonardo Machine Learning Demystified
Enable End-to-End Digital Government Transformation with SAP Solutions
Ad

More from Lars Gregori (20)

PDF
BYOM - Bring Your Own Model
PDF
uTensor - embedded devices and machine learning models
PDF
SAP Leonardo Machine Learning
PDF
Minecraft and reinforcement learning
PDF
Machine Learning Models on Mobile Devices
PDF
Minecraft and Reinforcement Learning
PDF
IoT protocolls - smart washing machine
PDF
[DE] AI und Minecraft
PDF
[DE] IoT Protokolle
PDF
[German] Boards für das IoT-Prototyping
PDF
IoT, APIs und Microservices - alles unter Node-RED
PDF
Web Bluetooth - Next Generation Bluetooth?
PDF
Embedded Rust – Rust on IoT devices
PDF
Embedded Rust on IoT devices
PDF
IoT mit Rust programmieren
PDF
Boards for the IoT-Prototyping
PDF
Groß steuert klein - Wie lässt sich ein Arduino steuern?
PDF
Connecting Minecraft and e-Commerce business services
PDF
Moto - Orchestrating IoT for business users 
and connecting it to YaaS
PDF
IoT Chess mnug
BYOM - Bring Your Own Model
uTensor - embedded devices and machine learning models
SAP Leonardo Machine Learning
Minecraft and reinforcement learning
Machine Learning Models on Mobile Devices
Minecraft and Reinforcement Learning
IoT protocolls - smart washing machine
[DE] AI und Minecraft
[DE] IoT Protokolle
[German] Boards für das IoT-Prototyping
IoT, APIs und Microservices - alles unter Node-RED
Web Bluetooth - Next Generation Bluetooth?
Embedded Rust – Rust on IoT devices
Embedded Rust on IoT devices
IoT mit Rust programmieren
Boards for the IoT-Prototyping
Groß steuert klein - Wie lässt sich ein Arduino steuern?
Connecting Minecraft and e-Commerce business services
Moto - Orchestrating IoT for business users 
and connecting it to YaaS
IoT Chess mnug
Ad

Recently uploaded (20)

PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
PPTX
Derivatives of integument scales, beaks, horns,.pptx
PPTX
Microbiology with diagram medical studies .pptx
PPTX
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PDF
. Radiology Case Scenariosssssssssssssss
PPTX
2. Earth - The Living Planet earth and life
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PDF
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PPTX
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
PDF
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
PPTX
famous lake in india and its disturibution and importance
PPTX
7. General Toxicologyfor clinical phrmacy.pptx
PPTX
ECG_Course_Presentation د.محمد صقران ppt
PDF
Sciences of Europe No 170 (2025)
PDF
Placing the Near-Earth Object Impact Probability in Context
PDF
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PPT
protein biochemistry.ppt for university classes
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
Derivatives of integument scales, beaks, horns,.pptx
Microbiology with diagram medical studies .pptx
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
. Radiology Case Scenariosssssssssssssss
2. Earth - The Living Planet earth and life
Biophysics 2.pdffffffffffffffffffffffffff
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
famous lake in india and its disturibution and importance
7. General Toxicologyfor clinical phrmacy.pptx
ECG_Course_Presentation د.محمد صقران ppt
Sciences of Europe No 170 (2025)
Placing the Near-Earth Object Impact Probability in Context
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
Classification Systems_TAXONOMY_SCIENCE8.pptx
protein biochemistry.ppt for university classes

Minecraft and Reinforcement Learning

  • 1. Lars Gregori, SAP Hybris Labs April 13, 2018 Minecraft and Reinforcement Learning AI Hacking
  • 2. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
  • 4. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas Minecraft Markus "Notch" Persson Mojang AB Best-selling PC game of all time Exploration Resource gathering Crafting Combat Sandbox construction game Creative + building aspects Three-dimensional environment
  • 6. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas Project Malmo Open Source (Github) Microsoft Research Lab Based on Minecraft / Minecraft Forge Agents written in Python, Lua, C++, C#, Java, Torch, ALE Mission XML WorldState Send Command
  • 8. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas Reinforcement Learning Supervised Learning Unsupervised Learning Reinforcement Learning
  • 9. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas Reinforcement Learning Observation Reward Action Environment Agent
  • 10. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas “Reinforcement learning is like trial-and-error learning.”David Silver Reinforcement Learning
  • 11. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ Public "11 Reinforcement Learning: An Introduction Richard S. Sutton and Andrew G. Barto
 (1998) Reinforcement Learning
  • 12. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ Reinforcement Learning Example
  • 13. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ Public "13 Q-Learning
  • 14. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ Public "14 Q-Learning 100 
 -1 99.0 α - step-size parameter (1.0) γ - discount-rate parameter (0.8)
  • 15. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ Public "15 Q-Learning 100 
 -1 99.0 78.2 -101.0 α - step-size parameter (1.0) γ - discount-rate parameter (0.8) -100 
 -1
  • 16. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ Public "16 Q-Learning 99.0000000 78.2000000 61.5600000 48.2480000 37.5984000 29.0787200 22.2629760 16.8103808 12.4483046 8.9586437 99 78 61 48 37 29 2216 128
  • 18. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas Deep Reinforcement Learning Supervised Learning Unsupervised Learning Reinforcement Learning
  • 19. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas Deep Reinforcement Learning https://youtu.be/TmPfTpjtdgg
  • 20. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
  • 22. PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ #AIandMinecraft @choas The Malmo Platform for Artificial Intelligence Experimentation. Proc. 25th International Joint Conference on Artificial Intelligence http://www.ijcai.org/Proceedings/2016 Project Malmo https://www.microsoft.com/en-us/research/project/project-malmo/ Project Malmo (Github) https://github.com/Microsoft/malmo Reinforcement Learning: An Introduction - ISBN-13: 978-0262193986
 2nd Version online YouTube RL Course by David Silver Links
  • 23. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components 
 of other software vendors. National product specifications may vary. These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are 
 set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/ or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various 
 risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) 
 in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies. 
 See http://global.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices. © 2018 SAP SE or an SAP affiliate company. All rights reserved.