Skip to content

Instantly share code, notes, and snippets.

View rogaha's full-sized avatar

Roberto Gandolfo Hashioka rogaha

  • Docker, Inc
  • San Francisco, CA
View GitHub Profile
@rogaha
rogaha / dnn.py
Created March 7, 2017 13:19 — forked from syhw/dnn.py
A simple deep neural network with or w/o dropout in one file.
"""
A deep neural network with or w/o dropout in one file.
License: Do What The Fuck You Want to Public License http://www.wtfpl.net/
"""
import numpy, theano, sys, math
from theano import tensor as T
from theano import shared
from theano.tensor.shared_randomstreams import RandomStreams
@rogaha
rogaha / pg-pong.py
Created March 7, 2017 13:03 — forked from karpathy/pg-pong.py
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" 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
@rogaha
rogaha / volume.rst
Last active December 26, 2015 04:29
title

Working with Volumes

description

How to create and share volumes

keywords

Examples, Usage, volume, docker, documentation, examples

Data Volume

v0.3.0