rldurham
Functions
Check if CUDA is available and return 'cuda' or 'cpu' accordingly. |
|
|
Return and (optionally) print some info about action and observation states. |
|
Attempts to unwrap an environment (by repeatedly calling env = env.env) before getting an attribute. |
|
Drop-in replacement for |
|
A helper function to draw the frozen lake environment with state values and policy. |
|
Helper function for rendering environments. |
|
This uses the PyTorch Lightning |
|
Decorator that tried to find attributes hidden inside wrapped environments. |
Classes
Track info by recursively descending into dict and creating lists of info values. |
|
|
Light-weight environment wrapper to enable logging. |
|
|
|
Wrapper to record videos (adapted from gym.wrappers.RecordVideo) with a custom callback function to adapt the file name. |
Modules