Coder Social home page Coder Social logo

sunghoonhong / mc-lave-rl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jys5609/mc-lave-rl

0.0 0.0 0.0 5.21 MB

ICLR 2021: "Monte-Carlo Planning and Learning with Language Action Value Estimates"

License: GNU General Public License v2.0

Python 100.00%

mc-lave-rl's Introduction

Monte-Carlo Planning and Learning with Language Action Value Estimates

This repository is the implementation of "Monte-Carlo Planning and Learning with Language Action Value Estimates"

Requirements

To install requirements:

conda env create -f environment.yml
conda activate mc-lave-rl
python -m spacy download en_core_web_lg
python -m spacy download en

Monte-Carlo Tree Search (MCTS)

To run the data collection with MCTS for initial iteration, run this command with :

python run_planning.py --seed=$SEED --trial=0

(For each planning, use --seed option with different index)

All experiments in the paper were conducted with Google Cloud Platform(GCP) and HTCondor to run in parallel. If you want to run the experiment in parallel, we reccomend to set up the HTCondor and environment on your GCP account.

Merge planning trajectories and experience replays

To merge the data for learning the Q-network and policy, run this command:

python merge_plans.py

Train the Q-network and policy

To run the Q-network and policy with collected data, run this command:

(train Q-network) python run_learning.py --mode=0
(train policy) python run_learning.py --mode 1

Monte-Carlo Planning with Language Action Value Estimates (MC-LAVE)

To run the MC-LAVE planning with trained Q-network and policy, run this command with :

python run_planning.py --seed=$SEED --trial=1

(For each iteration, use --trial option with iteration number)

Citation

If this repository helps you in your academic research, you are encouraged to cite our paper. Here is an example bibtex:

@inproceedings{jang2021montecarlo,
  title={Monte-Carlo Planning and Learning with Language Action Value Estimates},
  author={Youngsoo Jang and Seokin Seo and Jongmin Lee and Kee-Eung Kim},
  booktitle={International Conference on Learning Representations},
  year={2021},
  url={https://openreview.net/forum?id=7_G8JySGecm}
}

Acknowledgement

This code is adapted and modified upon the code github of AAAI 2020 paper "Interactive Fiction Games: A Colossal Adventure". We appreciate their released dataset and code which are very helpful to our research.

mc-lave-rl's People

Contributors

jys5609 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.