Code Monkey home page Code Monkey logo

qreps's People

Contributors

sebascuri avatar sebimarkgraf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

qreps's Issues

Issues with Installing

Hi,
I tried to install the package by following the instructions provided in the readme however I cannot get past the third step:
pip install -e.[experiments]

Running which gives the following error:
Screenshot 2022-01-17 at 12 16 36

You can see here that the GitHub link from which it tries to obtain the rllib has the next requirement (numpy) attached at the end, as I believe you are missing a comma in your setup.py.

But even after fixing that issue locally, I still obtain a very similar error:
Screenshot 2022-01-17 at 12 16 02

I am running the code on macOS 12.0.1.

Confused about the Implementation of QREPS Agent

Hey,
I am confused about the dual implementation in the QREPS agent.
The code I am talking about is in qreps_algorithm in the QREPS class.
To be specific:

 # Calculate weights.
weights_td = self.eta() * td  # type: torch.Tensor
if weights_td.ndim == 1:
    weights_td = weights_td.unsqueeze(-1)
dual = 1 / self.eta() * torch.logsumexp(weights_td, dim=-1)
dual += (1 - self.gamma) * value.squeeze(-1)
return Loss(dual_loss=dual.mean(), td_error=td)

As far as I understand, the last dimension in weights_td is always added and then the logsumexp operation does nothing.
Maybe, you can help me in understanding this or maybe there are changes between the version of the paper and the implementation visible here.

The current implementation seems to perform only good with the fixed seed 0.
When setting any other seed the learning breaks down completely.

I hope you can guide me in understanding this.

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.