This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Kyle Kastner | |
# License: BSD 3-Clause | |
# http://mcts.ai/pubs/mcts-survey-master.pdf | |
# See similar implementation here | |
# https://github.com/junxiaosong/AlphaZero_Gomoku | |
# changes from high level pseudo-code in survey | |
# expand all children, but only rollout one | |
# section biases to unexplored nodes, so the children with no rollout | |
# will be explored quickly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install miniconda | |
cd | |
wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-armv6l.sh | |
md5sum Miniconda-3.5.5-Linux-armv6l.sh | |
bash Miniconda-3.5.5-Linux-armv6l.sh -b | |
rm -rf Miniconda-3.5.5-Linux-armv6l.sh | |
echo 'export PATH=/home/pi/miniconda/bin:$PATH' >> .bashrc | |
source .bashrc | |
conda install pip --yes | |
conda install ipython --yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from bs4 import BeautifulSoup | |
# Read in wheat production ----- | |
wheat = {} | |
reader = csv.reader(open('aw98.csv'), delimiter=",") | |
#file has four lines of headers | |
next(reader, None) | |
next(reader, None) | |
next(reader, None) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
required packages: | |
numpy | |
matplotlib | |
basemap: http://matplotlib.org/basemap/users/installing.html | |
shapely: https://pypi.python.org/pypi/Shapely | |
descartes: https://pypi.python.org/pypi/descartes | |
random | |