Giter Site home page Giter Site logo

rl_for_oal's Introduction

rl_for_oal - Reinforcement Learning for Opportunistic Active Learning

Project Goals -

  • Can we learn a policy for opportunistic active learning - that is trading off queries that would help in future interactions, with finishing the current interaction quickly
  • Can we learn how to choose between predicates in a multilabel setting?

Dependencies

Download and preprocess the Visual Genome dataset using this commit of my preprocessing repository Instructions are present at dataset_preprocessing/VisualGenome/README.md

Instructions

Set up some environment variables for convenience

export DATA_DIR=<path to Visual Genome dataset>
export AGENTS_DIR=<path to store trained agents>

All scripts are in the scripts directory.

cd scripts

Create a baseline static policy and test it

./create_static_policy.sh static $AGENTS_DIR
./test_static_policy.sh static $AGENTS_DIR

Instantiate the desired policy. The script uses the algorithm hyperparameters in the paper. Some other policy classes can be found in src.

./create_learned_policy.sh learned $AGENTS_DIR

Initialize the policy using episodes from the static policy

./init_policy.sh learned static $AGENTS_DIR $DATA_DIR

Train the policy

./train_policy.sh learned $AGENTS_DIR $DATA_DIR

Test the learned policy

./test_policy.sh learned $AGENTS_DIR $DATA_DIR

Summarize results

cd ../
mkdir logs
echo $'static\nlearned' > logs/agent_list.txt
cd analysis
python evaluate_bulk.py \
    --agents-path=$AGENTS-DIR \
    --agent-list-file=../logs/agent_list.txt

This summarizes some useful results into logs.

rl_for_oal's People

Contributors

aishwaryap avatar

Watchers

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