Train and export a continuous descriptor-conditioned Quality-Diversity Transformer.
More...
|
| | fit (self, episodes, descriptors, *, epochs=10, batch_size=16, learning_rate=3e-4) |
| | Fit the causal model using complete, descriptor-labelled episodes.
|
| | policy_for (self, descriptor) |
| | Bind a target descriptor to independent episode state.
|
| | save (self, path) |
| | Save model parameters and numeric environment layout for inference.
|
| | load (cls, path, *, device="cpu") |
| | Restore a Transformer independently of the training data and environment.
|
Train and export a continuous descriptor-conditioned Quality-Diversity Transformer.
Distill offline QD trajectories following the QDT paper (2023).
Each step contributes descriptor, observation, and action tokens. A
causal mask prevents a prediction from reading its target action.
The descriptor can be a measured behavior of the training trajectory
or a teacher label. Use a context length at least as long as the
episodes you will train on and deploy.
:param observation_space: Fixed numeric Gymnasium Box.
:param action_space: Bounded floating-point Gymnasium Box.
:param descriptor_size: Number of coordinates in each goal descriptor.
:param config: Optional QDTConfig architecture.
:param seed: Nonnegative initialization and minibatch seed.
:param device: CPU or CUDA Torch device.
Definition at line 113 of file qdt.py.