Commit f5f5b540 authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+7 −0
Changes for Chapter 1/No Work Files.rtf: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\fs24 \cf0 No work files for this lesson...}
 No newline at end of file
+7 −0
Changes for Chapter 2/environments.txt: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
// To create a new environement

$ conda create -n gym python=3.5 anaconda 

// To activate an environent

$ source activate gym
+125 −0
Changes for Chapter 2/installation.txt: 125 added lines, 0 removed lines.
Original line number Diff line number Diff line
// More in depth instructions including GPU/Cloud Tensorflow installation 
// can be found in my ML Workstation Installation guide located on my github:
// https://github.com/wagonhelm/ML-Workstation-Installation-Guide

Install Anaconda
================

$ wget https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh
$ bash Anaconda3-4.3.1-Linux-x86_64.sh

// If you accidently said no to prepending the Anaconda install 
// location to your bash you can:

$ gedit ~/.bashrc

// and paste in this at the bottom.

export PATH="/home/$USER/anaconda3/bin:$PATH"

Create an Environment
=====================

// To create a new environement

$ conda create -n gym python=3.5 anaconda 

// To activate an environent

$ source activate gym


Install Required Packages
=========================

$ sudo apt-get install git python-dev python3-dev build-essential swig libcurl3-dev libcupti-dev golang libjpeg-turbo8-dev make tmux htop cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev apt-transport-https ca-certificates curl software-properties-common openjdk-8-jdk coreutils mercurial libav-tools libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm timgm6mb-soundfont xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf


// Install all packages using your Anaconda environment!!!
==========================================================

$ source activate gym

(gym) $ conda install pip six libgcc swig opencv pyopengl


// Install TensorFlow
===================== 

(gym) $ pip install --upgrade tensorflow


// Install Gym
==============

(gym) $ cd ~
(gym) $ git clone https://github.com/openai/gym.git
(gym) $ cd gym
(gym) $ pip install -e '.[all]'


// Install PyGame
=================

(gym) $ hg clone https://bitbucket.org/pygame/pygame
(gym) $ cd pygame
(gym) $ python setup.py build
(gym) $ python setup.py install


// Install PyGame Learning Environment
======================================

(gym) $ cd ~
(gym) $ git clone https://github.com/ntasfi/PyGame-Learning-Environment.git
(gym) $ cd PyGame-Learning-Environment
(gym) $ pip install -e .


// Install GYM-Ple
==================

(gym) $ cd ~ 
(gym) $ git clone https://github.com/lusob/gym-ple.git
(gym) $ cd gym-ple
(gym) $ pip install -e .


// Install Baselines
====================

(gym) $ pip install baselines


// Install Docker
=================
 
// neccessary only if you want to use OpenAI's Universe
// Instructions from: https://docs.docker.com/engine/installation/linux/ubuntu/#install-docker

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ sudo reboot


// Install Universe
===================

(gym) $ git clone https://github.com/openai/universe.git
(gym) $ cd universe
(gym) $ pip install -e .


// Clone Starter Agent
======================

$ cd ~/gym
$ git clone https://github.com/openai/universe-starter-agent.git

Chapter 3/examples.txt

0 → 100755
+10 −0
Changes for Chapter 3/examples.txt: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
Examples of Reinforcement Learning
----------------------------------

http://www.marutitech.com/businesses-reinforcement-learning/
https://blog.openai.com/robots-that-learn/
https://www.youtube.com/watch?v=hx_bgoTF7bs
https://www.youtube.com/playlist?list=PL5nBAYUyJTrM48dViibyi68urttMlUv7e
https://www.youtube.com/watch?v=opsmd5yuBF0
https://www.youtube.com/watch?v=MblaRxDN6xE
https://www.youtube.com/watch?v=TmPfTpjtdgg
+7 −0
Changes for Chapter 4/No Work Files.rtf: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\fs24 \cf0 No work files for this lesson...}
 No newline at end of file
Loading