Last updated Oct 12, 2017
Infer how suboptimal agents are suboptimal while planning, for example if they are hyperbolic time discounters. Use this to do better inverse reinforcement learning.
Note that for SIMPLE baseline only gridsizes of 8 & 14 work.
To run benchmark testing, run python run_benchmarks.py --low LOW --high HIGH
etc.
gridworld.py
: Implements the Gridworld MDP, which is used for simple
experiments.
gridworld_data.py
: Generates example gridworlds, runs agents on the gridworlds
to generate trajectories, and collects all of the trajectories and puts them
into training and test sets used for learning.
agent_interface.py
: Defines the interface that agents should follow.
agent_runner.py
: Defines run_agent
, which given an agent and an environment,
runs the agent in the environment, producing a trajectory.
agents.py
: Defines many different agents that can play tabular MDPs. Currently
the agents are using value iteration like approaches.
The code here is taken from Tensorflow VINs with a few edits.
model.py
: Implementation of VIN and VIN with untied weights.
train.py
: Trains a VIN using gridworld data.
disjoint_sets.py
: An implementation of the disjoint sets data structure, used in gridworld_data.py
to generate interesting grid worlds.
utils.py
: Utility functions.
All of the *_tests.py
contain tests for the corresponding *.py
file. All of
the tests can be run using:
./run_tests.sh
You may need to first give it execute permissions:
chmod +x run_tests.sh