Giter Site home page Giter Site logo

takuyahiraoka / learning_to_adapt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iclavera/learning_to_adapt

0.0 2.0 0.0 694 KB

Learning to Adapt in Dynamic, Real-World Environment through Meta-Reinforcement Learning

Dockerfile 0.45% Python 91.61% CSS 1.28% JavaScript 4.35% HTML 2.30%

learning_to_adapt's Introduction

Learning to Adapt in Dynamic, Real-World Environment through Meta-Reinforcement Learning

Implementation of Learning to Adapt in Dynamic, Real-World Environment through Meta-Reinforcement Learning. The code is written in Python 3 and builds on Tensorflow. The environments require the Mujoco131 physics engine.

Getting Started

A. Docker

If not installed yet, set up docker on your machine. Pull our docker container iclavera/learning_to_adapt from docker-hub:

docker pull iclavera/learning_to_adapt All the necessary dependencies are already installed inside the docker container.

B. Anaconda

Ensure that you have a working MPI implementation (see here for more instructions).

For Ubuntu you can install MPI through the package manager: sudo apt-get install libopenmpi-dev

If not done yet, install anaconda by following the instructions here

conda env create -f docker/environment.yml

For running the environments, the Mujoco physics engine version 131 is needed. For setting up Mujoco and mujoco-py

Usage

The run scripts are located in the folder run_scripts. In order to run experiments with GrBAL, run the following command:

python run_scripts/run_grbal.py

If instead, you want to run ReBAL:

python run_scripts/run_rebal.py

We have also implement a non-adaptive model-based method that uses random shooting or cross-entropy for planning. You can run this baseline by executing the command:

python run_scripts/run_mb_mpc.py

When running experiments, the data will be stored in data/$EXPERIMENT_NAME. You can visualize the learning process by using the visualization kit:

python viskit/frontend.py data/$EXPERIMENT_NAME

In order to visualize and test a learned policy run:

python experiment_utils/sim_policy data/$EXPERIMENT_NAME

Acknowledgements

This repository is partly based on Duan et al., 2016.

learning_to_adapt's People

Contributors

iclavera avatar

Watchers

James Cloos avatar paper2code - bot 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.