Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| """ Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
| import numpy as np | |
| import cPickle as pickle | |
| import gym | |
| # hyperparameters | |
| H = 200 # number of hidden layer neurons | |
| batch_size = 10 # every how many episodes to do a param update? | |
| learning_rate = 1e-4 | |
| gamma = 0.99 # discount factor for reward |
| n02119789 1 kit_fox | |
| n02100735 2 English_setter | |
| n02110185 3 Siberian_husky | |
| n02096294 4 Australian_terrier | |
| n02102040 5 English_springer | |
| n02066245 6 grey_whale | |
| n02509815 7 lesser_panda | |
| n02124075 8 Egyptian_cat | |
| n02417914 9 ibex | |
| n02123394 10 Persian_cat |
| #!flask/bin/python | |
| from flask import Flask, jsonify, abort, request, make_response, url_for | |
| from flask_httpauth import HTTPBasicAuth | |
| app = Flask(__name__, static_url_path = "") | |
| auth = HTTPBasicAuth() | |
| @auth.get_password | |
| def get_password(username): | |
| if username == 'miguel': |
| #! /usr/bin/env bash | |
| # Author: Damien Cassou | |
| # | |
| # This is the script I use to build Emacs packages for Ubuntu. These | |
| # packages are uploaded to | |
| # https://launchpad.net/~cassou/+archive/emacs/. Each package is | |
| # either build from a Debian package or from | |
| # http://emacs.naquadah.org/. |