Views
No views yet
1
2from rl-framework import ImitationAgent, ImitationAlgorithm
3
4# Create new agent instance
5agent = ImitationAgent(
6 algorithm=ImitationAlgorithm.GAIL
7 algorithm_parameters={
8 ...
9 },
10)
11
12# Download existing agent from HF Hub
13repository_id = "zap-thamm/Imitation-GAIL-CartPole-v1"
14file_name = "agent.zip"
15agent.download(repository_id=repository_id, filename=file_name)
16