0

我正在尝试遵循本教程 1https ://github.com/anyscale/academy/blob/main/ray-rllib/02-Introduction-to-RLlib.ipynb 。但是当我在 Google colab 上实现它时,我没有得到任何结果。它仅显示试用未决和已分配内存

from ray import tune
from ray.rllib.agents.ppo import PPOTrainer, DEFAULT_CONFIG

import ray
info = ray.init(ignore_reinit_error=True)
tune.run(PPOTrainer, 
        config={"env": "CartPole-v1"},
        stop={"training_iteration": 20},
        local_dir = "/content/ppo",
        checkpoint_at_end=True,
        verbose=2            # 2 for INFO; change to 1 or 0 to reduce the output.
        )

运行此实例后,我得到

在此处输入图像描述

我在这里有什么问题吗?为什么即使初始化了ray它也没有运行

4

0 回答 0