![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
gym
文章平均质量分 93
ulimate_
To iterate is human, to recurse divine
展开
-
gym的environment
import。翻译 2023-06-26 18:44:51 · 215 阅读 · 0 评论 -
gym的wrappers翻译
包装类的模块。包装器是一种修改现有环境的方便方法,而不必直接更改底层代码。使用包装器可以避免大量的样板代码,并使您的环境更加模块化。包装器也可以被链接以组合它们的效果。默认情况下,通过gymneum.make()生成的大多数环境都已被封装。为了包装环境,必须首先初始化一个基本环境。然后,您可以将这个环境和(可能是可选的)参数一起传递给包装器的构造函数。then您可以使用gymnasium.wrapper.env属性访问第一个包装下面的环境。原创 2023-06-26 16:58:50 · 93 阅读 · 1 评论 -
gym的space翻译
and. If, for instance, three possible actions (0,1,2) can be performed in your environment and observations are vectors in the two-dimensional unit cube, the environment code may contain the following two lines:该模块实现了各种空间。空间描述数学集合,并在健身房中用于指定有效的动作和观察。原创 2023-06-26 16:58:36 · 241 阅读 · 1 评论 -
gym的register and make 翻译
Gymnasium允许用户自动加载环境,通过Gymnasim.make()函数用几个重要的包装器进行预包装id: str |or aEnvSpecEnvSpec. This is equivalent to importing the module first to register the environment followed by making the environment.环境id或环境规范的字符串。(可选)如果使用字符串,则可以包括要导入的模块,例如“module:Env-v0”。原创 2023-06-26 16:50:50 · 181 阅读 · 1 评论 -
gym的env翻译
as the next observation due to the agent actions. An example is a numpy array containing the positions and velocities of the pole in CartPole.环境观测空间中的一个元素,作为由于智能体动作而产生的下一个观测。如果环境由于最新的操作和来自环境的有关步骤的信息(即度量、调试信息)而终止或截断,则使用返回下一个代理观察结果的操作更新环境,即采取该操作的奖励。翻译 2023-06-26 16:44:59 · 124 阅读 · 1 评论