pytorch / pytorch/rl

[Feature Request] Create a categorical tensorspec and make DQN primitives compatible with non-one-hot encoding

Open
#538 0 comments 1 reaction 1 assignee View on GitHub

@vmoens is already working on this.

Since Oct 7, 2022.

enhancement
Dominant language
Python
Stars
3.6k
Forks
484
Avg merge
1d 1h
Merged PRs (30d)
207

Description

Motivation

We opted for default one-hot encoding for categorical data because it facilitates the retrieval of action values:

chosen_action_value = action * action_values

However, this is not scalable to large action spaces.
We should make it possible to use integers instead.

To make this possible, the following changes are needed:

All these features should be unit-tested and parametrisable (e.g. with ONE_HOT_ENCODING) in the DQN training scripts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.