Git Product home page Git Product logo

vkurenkov / language-grounding-multigoal Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 1.0 944.19 MB

An accompanying code and experiments' results for Task-Oriented Language Grounding for Language Input with Multiple Sub-Goals of Non-Linear Order

License: MIT License

Python 35.37% Dockerfile 0.05% Shell 0.02% Jupyter Notebook 64.56%
reinforcement-learning language-grounding multi-goal order-connectors pytorch pytorch-rl reinforcement-learning-environments

language-grounding-multigoal's Introduction

Task-Oriented Language Grounding for Language Input with Multiple Sub-Goals of Non-Linear Order

This repository contains an accompanying source code and experiments' results for this paper.

How the project is organized

Folder experiments contains the code for different agents. It's built around 5 main python files:

  • parameters.py contains definitions for the model: hyperparameters, seed, definition of the environment/insturctions dataset/layouts, and etc.
  • train.py contains logic for training the agent. The training is assumed to be started by calling start_training. All the parameters are taken from parameters.py
  • visualize.py contains logic for visualising the agent. All the parameters are taken from parameters.py
  • evaluation.py contains logic for evaluating the agent. All the parameters are taken from parameters.py
  • model.py contains the model of the network. All the parameters are taken from parameters.py

In order to train, evaluate, or visualise any of the agents, you need to import the target function/module. Few examples:

  • To visualise the Dueling DQN + Gated-Attention agent
from experiments.dueling_dqn_ga import visualize
  • To start training of the Dueling DQN + Concatenation agent
from experiments.dueling_dqn_cat import train
train.start_training()
  • To benchmark the Dueling DQN + Concatenation agent
from experiments.dueling_dqn_cat import evaluate
evaluate.benchmark_all()

Every experiment is saved into its own folder, which is defined in terms of the parameters in parameters.py. All the training data (tensorboard logs), benchmarks (benchmarks.json), and the best model (best.model) are inside of it.


If you want to run many experiments with different parameters, consider the file runner_hypothesis_synonyms.py. It shows how you could do it (but it's a bit messy).


It's recommended to use Linux-based system, as the most Windows systems are not friendly with long paths.


Just execute build_run.sh, and it will build a container for running training or benchmarking jobs (visualiztion should be run locally).

language-grounding-multigoal's People

Contributors

vkurenkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

smksyj

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.