Skip to content

Commit 6f90397

Browse files
author
Vincent Moens
authored
[Doc] References to TED (#1839)
1 parent 3fd637f commit 6f90397

File tree

9 files changed

+18
-1
lines changed

9 files changed

+18
-1
lines changed

docs/source/reference/data.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ common setting when using replay buffers.
301301
TorchRL Episode Data Format (TED)
302302
---------------------------------
303303

304+
.. _TED-format:
305+
304306
In TorchRL, sequential data is consistently presented in a specific format, known
305307
as the TorchRL Episode Data Format (TED). This format is crucial for the seamless
306308
integration and functioning of various components within TorchRL.

torchrl/data/datasets/atari_dqn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AtariDQNExperienceReplay(TensorDictReplayBuffer):
4141
The sub-sampling rate (frame-skip) is equal to 4, meaning that each game dataset
4242
has 50 million steps in total.
4343
44-
The data format follows the TED convention. Since the dataset is quite heavy,
44+
The data format follows the :ref:`TED convention <TED-format>`. Since the dataset is quite heavy,
4545
the data formatting is done on-line, at sampling time.
4646
4747
To make training more modular, we split the dataset in each of the Atari games

torchrl/data/datasets/d4rl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class D4RLExperienceReplay(TensorDictReplayBuffer):
3838
To install D4RL, follow the instructions on the
3939
`official repo <https://github.com/Farama-Foundation/D4RL>`__.
4040
41+
The data format follows the :ref:`TED convention <TED-format>`.
4142
The replay buffer contains the env specs under D4RLExperienceReplay.specs.
4243
4344
If present, metadata will be written in ``D4RLExperienceReplay.metadata``

torchrl/data/datasets/gen_dgrl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class GenDGRLExperienceReplay(TensorDictReplayBuffer):
3434
3535
GitHub: https://github.com/facebookresearch/gen_dgrl
3636
37+
The data format follows the :ref:`TED convention <TED-format>`.
38+
3739
This class gives you access to the ProcGen dataset. Each `dataset_id` registered
3840
in `GenDGRLExperienceReplay.available_datasets` consists in a particular task
3941
(`"bigfish"`, `"bossfight"`, ...) separated from a category (`"1M_E"`, `"1M_S"`, ...)

torchrl/data/datasets/minari_data.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
class MinariExperienceReplay(TensorDictReplayBuffer):
6060
"""Minari Experience replay dataset.
6161
62+
Learn more about Minari on their website: https://minari.farama.org/
63+
64+
The data format follows the :ref:`TED convention <TED-format>`.
65+
6266
Args:
6367
dataset_id (str): The dataset to be downloaded. Must be part of MinariExperienceReplay.available_datasets
6468
batch_size (int): Batch-size used during sampling. Can be overridden by `data.sample(batch_size)` if

torchrl/data/datasets/openml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class OpenMLExperienceReplay(TensorDictReplayBuffer):
2727
This class provides an easy entry point for public datasets.
2828
See "Dua, D. and Graff, C. (2017) UCI Machine Learning Repository. http://archive.ics.uci.edu/ml"
2929
30+
The data format follows the :ref:`TED convention <TED-format>`.
31+
3032
The data is accessed via scikit-learn. Make sure sklearn and pandas are
3133
installed before retrieving the data:
3234

torchrl/data/datasets/openx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class OpenXExperienceReplay(TensorDictReplayBuffer):
4242
4343
Paper: https://arxiv.org/abs/2310.08864
4444
45+
The data format follows the :ref:`TED convention <TED-format>`.
46+
4547
.. note::
4648
Non-tensor data will be written in the tensordict data using the
4749
:class:`~tensordict.tensorclass.NonTensorData` primitive.

torchrl/data/datasets/roboset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class RobosetExperienceReplay(TensorDictReplayBuffer):
4343
4444
Learn more about roboset here: https://sites.google.com/view/robohive/roboset
4545
46+
The data format follows the :ref:`TED convention <TED-format>`.
47+
4648
Args:
4749
dataset_id (str): the dataset to be downloaded. Must be part of RobosetExperienceReplay.available_datasets.
4850
batch_size (int): Batch-size used during sampling. Can be overridden by `data.sample(batch_size)` if

torchrl/data/datasets/vd4rl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ class VD4RLExperienceReplay(TensorDictReplayBuffer):
5050
that is not reward, done-state, action or pixels is moved under a `"state"`
5151
node.
5252
53+
The data format follows the :ref:`TED convention <TED-format>`.
54+
5355
Args:
5456
dataset_id (str): the dataset to be downloaded. Must be part of
5557
VD4RLExperienceReplay.available_datasets.

0 commit comments

Comments
 (0)