mirror of
https://github.com/wassname/ray.git
synced 2026-07-27 11:26:41 +08:00
[rllib] Added vanilla policy gradient (#1497)
This commit is contained in:
@@ -229,6 +229,9 @@ def get_agent_class(alg):
|
||||
elif alg == "BC":
|
||||
from ray.rllib import bc
|
||||
return bc.BCAgent
|
||||
elif alg == "PG":
|
||||
from ray.rllib import pg
|
||||
return pg.PGAgent
|
||||
elif alg == "script":
|
||||
from ray.tune import script_runner
|
||||
return script_runner.ScriptRunner
|
||||
|
||||
Reference in New Issue
Block a user