Skip to content

Commit 879a272

Browse files
committed
update samples from Release-52 as a part of SDK release
1 parent bc65bde commit 879a272

23 files changed

+9368
-3
lines changed

how-to-use-azureml/reinforcement-learning/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ Using these samples, you will be able to do the following.
2020

2121
| File/folder | Description |
2222
|-------------------|--------------------------------------------|
23-
| [README.md](README.md) | This README file. |
2423
| [devenv_setup.ipynb](setup/devenv_setup.ipynb) | Notebook to setup development environment for Azure ML RL |
2524
| [cartpole_ci.ipynb](cartpole-on-compute-instance/cartpole_ci.ipynb) | Notebook to train a Cartpole playing agent on an Azure ML Compute Instance |
2625
| [cartpole_cc.ipynb](cartpole-on-single-compute/cartpole_cc.ipynb) | Notebook to train a Cartpole playing agent on an Azure ML Compute Cluster (single node) |
2726
| [pong_rllib.ipynb](atari-on-distributed-compute/pong_rllib.ipynb) | Notebook to train Pong agent using RLlib on multiple compute targets |
27+
| [minecraft.ipynb](minecraft-on-distributed-compute/minecraft.ipynb) | Notebook to train an agent to navigate through a lava maze in the Minecraft game |
2828

2929
## Prerequisites
3030

@@ -111,7 +111,7 @@ contact [[email protected]](mailto:[email protected]) with any additio
111111

112112
For more on SDK concepts, please refer to [notebooks](https://github.com/Azure/MachineLearningNotebooks).
113113

114-
**Please let us know your feedback.**
114+
**Please let us know your [feedback](https://github.com/Azure/MachineLearningNotebooks/labels/Reinforcement%20Learning).**
115115

116116

117117

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
FROM mcr.microsoft.com/azureml/base:openmpi3.1.2-ubuntu18.04
2+
3+
# Install some basic utilities
4+
RUN apt-get update && apt-get install -y \
5+
curl \
6+
ca-certificates \
7+
sudo \
8+
cpio \
9+
git \
10+
bzip2 \
11+
libx11-6 \
12+
tmux \
13+
htop \
14+
gcc \
15+
xvfb \
16+
python-opengl \
17+
x11-xserver-utils \
18+
ffmpeg \
19+
mesa-utils \
20+
nano \
21+
vim \
22+
rsync \
23+
&& rm -rf /var/lib/apt/lists/*
24+
25+
# Create a working directory
26+
RUN mkdir /app
27+
WORKDIR /app
28+
29+
# Install Minecraft needed libraries
30+
RUN mkdir -p /usr/share/man/man1 && \
31+
sudo apt-get update && \
32+
sudo apt-get install -y \
33+
openjdk-8-jre-headless=8u162-b12-1 \
34+
openjdk-8-jdk-headless=8u162-b12-1 \
35+
openjdk-8-jre=8u162-b12-1 \
36+
openjdk-8-jdk=8u162-b12-1
37+
38+
# Create a Python 3.7 environment
39+
RUN conda install conda-build \
40+
&& conda create -y --name py37 python=3.7.3 \
41+
&& conda clean -ya
42+
ENV CONDA_DEFAULT_ENV=py37
43+
44+
# Install minerl
45+
RUN pip install --upgrade --user minerl
46+
47+
RUN pip install \
48+
pandas \
49+
matplotlib \
50+
numpy \
51+
scipy \
52+
azureml-defaults \
53+
tensorboardX \
54+
tensorflow==1.15rc2 \
55+
tabulate \
56+
dm_tree \
57+
lz4 \
58+
ray==0.8.3 \
59+
ray[rllib]==0.8.3 \
60+
ray[tune]==0.8.3
61+
62+
COPY patch_files/* /root/.local/lib/python3.7/site-packages/minerl/env/Malmo/Minecraft/src/main/java/com/microsoft/Malmo/Client/
63+
64+
# Start minerl to pre-fetch minerl files (saves time when starting minerl during training)
65+
RUN xvfb-run -a -s "-screen 0 1400x900x24" python -c "import gym; import minerl; env = gym.make('MineRLTreechop-v0'); env.close();"
66+
67+
RUN pip install --index-url https://test.pypi.org/simple/ malmo && \
68+
python -c "import malmo.minecraftbootstrap; malmo.minecraftbootstrap.download();"
69+
70+
ENV MALMO_XSD_PATH="/app/MalmoPlatform/Schemas"

0 commit comments

Comments
 (0)