pantheonrl.common.trajsaver
This module defines classes and methods related to saving trajectories.
Most of these functions come directly from the HumanCompatibleAI imitation repo: https://github.com/HumanCompatibleAI/imitation/blob/master/src/ imitation/data/types.py
Functions
Extract dataclass to items using dataclasses.fields + dict comprehension. |
|
Custom torch.utils.data.DataLoader collate_fn for TransitionsMinimal. |
Classes
Base class for all classes that store multiple transitions |
|
Class that stores transitions from SimultaneousEnv |
|
This class is modified from HumanCompatibleAI's imitation repo: https://github.com/HumanCompatibleAI/imitation/blob/master/src/imitation/ data/types.py |
|
Class that stores transitions from TurnBasedEnv |