This code is tested on Ubuntu 16.04.
Install scapy.
$ sudo apt-get install scapy
Code for Keras plays catch blog post
python qlearn.py| import tensorflow as tf | |
| import numpy as np | |
| import time | |
| N=10000 | |
| K=4 | |
| MAX_ITERS = 1000 | |
| start = time.time() |
| machine: | |
| node: | |
| version: 4.1 | |
| pre: | |
| - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install gcc-4.9 g++-4.9 | |
| post: | |
| - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 |
定番、および比較的最近の学習リソースを集めてみました (2015/2)。