pretrained#
Classes#
- class prt_rl.common.policies.pretrained.SB3Policy(model_dir: str, model_type: str, env_name: str, device: str = 'cpu', **kwargs)[source]#
Stable Baselines3 (SB3) agent for reinforcement learning.
This agent wraps a pre-trained model from Stable Baselines3 and uses it to predict actions based on the current state.
Note
You must install prt-rl[sb3] to use this agent, which includes the necessary dependencies for Stable Baselines3.
- Parameters:
- Reference:
[1] [Model Library](https://huggingface.co/sb3)