python binning data openAI gym
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am attempting to create a custom environment for reinforcement learning with openAI gym. I need to represent all possible values that the environment will see in a variable called observation_space . There are 3 possible actions for the agent to use called action_space To be more specific the observation_space is a temperature sensor which will see possible ranges from 50 to 150 degrees and I think I can represent all of this by: EDIT, I had the action_space numpy array wrong import numpy as np action_space = np.array([ 0, 1, 2])