Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Rename specs to simpler names #2368

Merged
merged 23 commits into from
Aug 7, 2024
Merged
Prev Previous commit
Next Next commit
amend
  • Loading branch information
vmoens committed Aug 6, 2024
commit 35b629896afc2a9a3f4332d203237a280fda778d
10 changes: 4 additions & 6 deletions docs/source/reference/data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -889,16 +889,14 @@ function.

Specs fall in two main categories, numerical and categorical.

.. _table-label:

.. table:: TensorSpec subclasses.

+-----------------+-------------------+-------------------+---------------------+--------+-------------+-------------+------------------+----------+
+-------------------------------------------------------------------------------+------------------------------------------------------------------+
| Numerical | Categorical | |
+=================+===================+===================+=====================+========+=============+=============+==================+==========+
+=====================================+=========================================+========+=============+=============+==================+==========+
| Bounded | Unbounded | OneHot | MultiOneHot | Categorical | MultiCategorical | Binary |
+-----------------+-------------------+-------------------+---------------------+--------+-------------+-------------+------------------+----------+
| BoundedDiscrete | BoundedContinuous | UnboundedDiscrete | UnboundedContinuous | |
+-----------------+-------------------+-------------------+---------------------+ | | | | |
| BoundedDiscrete | BoundedContinuous | UnboundedDiscrete | UnboundedContinuous | | | | | |
+-----------------+-------------------+-------------------+---------------------+--------+-------------+-------------+------------------+----------+

Whenever a :class:`~torchrl.data.Bounded` instance is created, its domain (defined either implicitly by its dtype or
Expand Down
Loading