mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00
8 lines
197 B
Python
8 lines
197 B
Python
from ray import tune
|
|
from ray.rllib.algorithms.ppo import PPO
|
|
|
|
tune.run(
|
|
PPO,
|
|
stop={"episode_len_mean": 20},
|
|
config={"env": "CartPole-v0", "framework": "torch", "log_level": "INFO"},
|
|
)
|