Views
No views yet
1
2from rl_framework import StableBaselinesAgent, StableBaselinesAlgorithm
3
4# Create new agent instance
5agent = StableBaselinesAgent(
6 algorithm=StableBaselinesAlgorithm.PPO
7 algorithm_parameters={
8 ...
9 },
10)
11
12# Download existing agent from HF Hub
13repository_id = "zap-thamm/PPO-Taxi-v3"
14file_name = "algorithm.zip"
15agent.download(repository_id=repository_id, filename=file_name)
16