Giter Club home page Giter Club logo

pbrl_with_state_importance's Introduction

Introduction

This repo contains code for learning reward functions and state weights from preferences. After installation, find the task to run in main.py. For example,

python -um crowd_pbrl.main --exp_path <path-to-experiments> --gpu_id 0 --split 1 --game BeamRider --task sample_trajectories --method bt

Samples some trajectories for reward learning. Make sure there is a config.gin file in your . An example for configuration file is provided as config.gin. A script for how one can run experiments on Enduro is provided as run.py.

Installation

  1. (On windows with 1080Ti) Setup a virtual Python 3.7 environment and install other dependencies. If you are using miniconda,
conda create -n crowd_pbrl python==3.7
conda activate crowd_pbrl
conda install cudatoolkit=10.0
conda install cudnn
pip install tensorflow-gpu==1.15
pip install dopamine-rl==3.0.1
pip install ffmpeg-python
pip install scikit-learn
pip install gym[atari]
pip install matplotlib

copy atari files

python -m atari_py.import_roms <ROM_path>

pbrl_with_state_importance's People

Contributors

altriaex avatar

Stargazers

 avatar

Watchers

 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.