OpenAI 环境(健身房)应该如何使用 env.seed(0)? [英] How should OpenAI environments (gyms) use env.seed(0)?

查看:249
本文介绍了OpenAI 环境(健身房)应该如何使用 env.seed(0)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个非常简单的 OpenAI 健身房(banana-gym) 并想知道我是否应该/如何实现 env.seed(0).

I've created a very simple OpenAI gym (banana-gym) and wonder if / how I should implement env.seed(0).

参见 https://github.com/openai/gym/issues/250例如#issuecomment-234126816.

推荐答案

在最近的merge,OpenAI Gym 的开发人员更改了 env.seed() 的行为,不再调用方法 env._seed().相反,该方法现在只是发出警告并返回.我想如果你想用这个方法来设置你的环境的种子,你现在应该覆盖它.

In a recent merge, the developers of OpenAI gym changed the behavior of env.seed() to not call the method env._seed() anymore. Instead the method now just issues a warning and returns. I think if you want to use this method to set the seed of your environment, you should just overwrite it now.

这篇关于OpenAI 环境(健身房)应该如何使用 env.seed(0)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆