Code Monkey home page Code Monkey logo

hip-mdp-public's Introduction

Robust and Efficient Transfer Learning with Hidden Parameter Markov Decision Processes

This repository contains an implementation of a framework for training and testing Hidden Parameter Markov Decision Processes (to appear at NIPS 2017, pre-print available here) and other RL benchmarks.

Abstract

We introduce a new formulation of the Hidden Parameter Markov Decision Process (HiP-MDP), a framework for modeling families of related tasks using low-dimensional latent embeddings. We replace the original Gaussian Process-based model with a Bayesian Neural Network. Our new framework correctly models the joint uncertainty in the latent weights and the state space and has more scalable inference, thus expanding the scope the HiP-MDP to applications with higher dimensions and more complex dynamics.

Repository Contents

  • Example We demonstrate the training and testing of a HiP-MDP with embedded weights on the 2-D navigation domain (Grid) in toy_example.ipynb.
  • Simulators: source code to run various control domains. In particular,
    • Acrobot The Acrobot, an inverted double pendulum, introduced by Richard Sutton (1996) and summarized in Reinforcement Learning: An Introduction.
    • Grid A toy 2-D navigation domain developed to illustrate the concept of transfer through a HiP-MDP.
    • HIV Determining effective treatment protocols for simulated patients with HIV tracking their physiological response to separate classes of treatments. First introduced as an RL domain by Damien Ernst, et al. (2006).
  • Utilities: scripts used to build, combine and run the components of the HiP-MDP.
    • BNNs contains the class module and support functions to build, train and evaluate Bayesian Neural Networks with $\alpha$-divergence minimization.
    • Experience Replay contains the class to build and sample experience buffers, used for training neural networks with experience replay. Can be used to sample uniformly or in a prioritized fashion (after Schaul, et al. (2015)).
    • Priority Queue is a class module used to facilitate prioritized experience replay which implements a (Max) Binary Heap.
    • DQN is a class module that contains the code to build deep Q-networks. Currently defaulted to be a Double DQN (van Hasselt, et al. (2016)).

Prerequisites

Python 2.7.12
tensorflow 0.12.1
numpy 1.11.1
autograd 1.1.7
seaborn 0.7.1

Authors

  • Taylor Killian
  • Samuel Daulton
  • George Konidaris
  • Finale Doshi-Velez

License

The source code and documentation are licensed under the terms of the MIT License.

Acknowledgments

  • Harvard DTAK
  • Harvard Paulson School of Engineering and Applied Sciences
  • MIT Lincoln Laboratory Lincoln Scholars Program
  • Alpha divergence bayesian neural network adapted from Jose Miguel Hernandez Lobato's original code
  • HIV treatment and acrobot simulators adapted from RLPy's simulators
  • Priority queue adapted from Kai Arulkumaran's Atari repository
  • Deep Q Network follows Juliani's implementation

hip-mdp-public's People

Contributors

twkillian avatar yaojiayu0826 avatar

Watchers

James Cloos avatar Anusha Addagudi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.