Giter Club home page Giter Club logo

amazon-accessible-rl-sdk's People

Contributors

amazon-auto avatar chenwuperth avatar laurenstc avatar songyiy22414 avatar verdimrc avatar yapweiyih avatar yihyap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-accessible-rl-sdk's Issues

Bug in BYO Planner code - documentation

Applying my own data to the BYO Planner code it fails for the Behavioural Clone Planner part, specifically in this line of code:

immediate_cost = df_sar[tokenizer.df_tokenized.rewards[:-1]].values

The reason why it fails is because it assumes that tokenizer.df_tokenized.rewards is a list with more than one element and it can therefore apply [:-1]. In my case though:

len(tokenizer.df_tokenized.rewards)
1

which leads to:

tokenizer.df_tokenized.rewards[:-1]
[]

and finally:

df_sar[tokenizer.df_tokenized.rewards[:-1]].values
array([], shape=(1, 0), dtype=float64)

Should this be instead something like:

immediate_cost = immediate_cost = df_sar[tokenizer.df_tokenized.rewards[:-1 if len(tokenizer.df_tokenized.rewards)>1 else 0]].values

Remove dependency to stable_baseline3

Propose to remove stable_baseline3 from requirements.txt, and move the affected implementations out from a2rl to the examples.

stable_baseline3 depends on gym-0.21 which conflicts to the newer version that a2rl requires. The old gym version doesn't come with complete type checks, and still with deprecated or removed gym APIs.

Currently, a2rl requires stable_baseline3 at these places:

  • in data_generator_gym() which is used only in data_properties.ipynb.
  • in the docstring of WhatifWrapper.

In all cases above, the examples still work (fortunately) with a newer gym.

[UPDATE] Alternatively, investigate whether it's possible to switch to mushroom-rl. It supports newer gym, but due to Cython requirement, need to check how easy is installation on ARM and DL1 instances.

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.