Giter Site home page Giter Site logo

sf-tr's Introduction

SF-TR

Task Relabelling for Multi-task Transfer using Successor Features

This repository contains the code for the paper "Task Relabelling for Multi-task Transfer using Successor Features".

The agent contains the implementation of SFs. The Task Replacement is implemented as part of the loss function. Hindsight Task Replacement is done in the replay memory.

The main entrypoint is main.py with various options. To reproduce the main SF results from the paper you may use the following options:

  • --n-policies: 1 to use a single one, -1 to use as many as features in the environment
  • --replace-w: Use Task Replacement (TR)
  • --hindsight: Use Hindsight Task Replacement (HTR)
  • --train-mode: Specifies the training setup
  • --scenario: Specifies the "reward function" used by the environment

The environment features various reward function ("scenarios") in the following categories:

  • Pretrain: pretrain
  • Stationary linear: all, one_item, two_item
  • Non-stationary linear: random, random_pen
  • Stationary non-linear: craft_staff, craft_sword, craft_bow, craft_staff_neg, craft_sword_neg, craft_bow_neg

In the pretrain setting the reward == 0 for all states. When the reward function is stationary the same events give the same rewards for all episodes. When it is non-stationary a new reward function is sampled for each episode, i.e: collect a random resource. Linear reward functions can be expressed as a linear combination of the events and their weights. Some environments give negative rewards for collecting the wrong resources/items (random_pen, craft_sword_neg)

You may cite this project as:

@INPROCEEDINGS{balla2022relabelling,
  author={Balla, Martin and Perez-Liebana, Diego},
  booktitle={2022 IEEE Conference on Games (CoG)}, 
  title={Task Relabelling for Multi-task Transfer using Successor Features}, 
  year={2022},
  volume={},
  number={},
  pages={353-360},
  doi={10.1109/CoG51982.2022.9893550}}

sf-tr's People

Contributors

martinballa avatar mballa-qmul avatar

Stargazers

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