View tensorflow-agents-ppo-minitaur.py
def minitaur_config():
# General
algorithm = ppo.PPOAlgorithm
num_agents = 10
eval_episodes = 30
use_gpu = False
# Environment
env = 'MinitaurBulletEnv-v0'
max_length = 1000
steps = 1e7 # 10M
View bench_gym_speed.sh
python -c "import gym,time;d=10000;e=gym.make('Ant-v1');s=time.time();e.reset();[e.reset() if e.step(e.action_space.sample())[2] else 0 for _ in range(d)];print(d/(time.time()-s),'FPS')"
View agents_pybullet_example.md

TensorFlow Agents PyBullet Usage Example

This example shows how to install TensorFlow agents and use it on custom environments, such as the environments that come with PyBullet.

It works for both Python 3 and Python 2. Just replace pip3 and python3 with pip2 and python2.

Set up the dependencies:

View gru.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
class GRU(tf.contrib.rnn.RNNCell):
def __init__(
View edit_dirs
#!/usr/bin/python3
"""Move or delete directories via your text editor.
Requires sh.py that can be installed via `pip install sh`.
"""
import argparse
import tempfile
import os
import sh
View tf_char_rnn.py
import os
import tensorflow as tf
class AttrDict(dict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
self.__dict__ = self
View feed_forward_neural_network.py
import numpy as np
class Network:
def __init__(self, num_inputs, num_hidden, num_output,
init_weight_scale=0.5):
self.w1 = np.random.normal(
0, init_weight_scale, (num_inputs + 1, num_hidden))
self.w2 = np.random.normal(
View 2016-09-24T05-54-08-dqn-gather.yaml
algorithms:
- config:
| frame_skip: 6
| history: 6
| replay_capacity: 5e4
name: DQN
train_steps: 200000
type: DQN
envs:
- SimpleGather-v0
View 2016-06-10-char-rnn-sample.md

Char-RNN Sample

Parameters

dataset = ArxivAbstracts(
    categories='stat.ML cs.NE cs.LG math.OC',
    keywords='neural network deep')
max_length = 50
sampling_temperature = 0.5
View relations_semeval_glove_not_found.txt
keygen
uprises
non-infected
counter-weight
pipetted
quispel
rooster-whistles
moisturisers
enfeoffing
pre-adolescents