Skip to content

[Feature Request] DQN Loss importance sampling #955

Closed

Description

@monney

Motivation

I believe the current DQN Losses don't apply importance sampling weights. This is almost always applied when using a PER Buffer.

Solution

The PER buffer outputs "_weight" in info, this if in inputTensorDict, could be applied at time of loss calculation

Alternatives

element-wise loss could be returned with any transforms or weighting to be applied later on

Checklist

  • I have checked that there is no similar issue in the repo (required)

Activity

  1. added
    enhancement
    on Mar 8, 2023
  2. vmoens commented on Mar 8, 2023

    @vmoens
    Contributor

    I will take a look into this thanks for sharing!

  3. monney commented on Mar 9, 2023

    @monney
    Author

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions