Code Monkey home page Code Monkey logo

gscan_with_language_conditioned_embedding's Introduction

Code for paper: Systematic Generalization on gSCAN with Language Conditioned Embedding

Data Preprocessing

First clone https://github.com/LauraRuis/multimodal_seq2seq_gSCAN , enter multimodal_seq2seq_gSCAN/read_gscan and run

python read_gscan.py --dataset_path=../data/compositional_splits/dataset.txt --save_data --output_file=parsed_dataset.txt

Then move parsed_dataset.txt to parsed_dataset/ in this repo and run preprocess_parsed_dataset.py.

Environment

We use the same environment as the baseline, and dgl library.

Training

python main_model.py

Model parameters are defined in model/config.py, some common settings can also be modified through command line.

  • --run exp_name Set the experiment name
  • --txt If enabled, the model redirects all of the outputs to exp/exp_name.txt
  • --load path_to_model Load the checkpoint
  • --baseline Switch the model to baseline

Model Comparision

As part of our experiments, we ran two models on the same data split and compared their results. Results are saved in json format that is compatible with the visualization code from gSCAN.

Note: Remember to change the paths to models' checkpoints in model_compare.py before running. python model_compare.py

Model Evaluation (depreciated)

In eval_best_model.py.

gscan_with_language_conditioned_embedding's People

Contributors

gaotongxiao avatar hq01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rcorona

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.