MCPcopy Create free account
hub / github.com/Yonv1943/Python / step

Method step

ElegantRL/env.py:131–155  ·  view source on GitHub ↗

next_state, reward, done = env.step(action) convert the data type of state from float64 to float32, adjust action range to (-action_max, +action_max) return `array state` state.shape==(state_dim, ) return `float reward` reward of one step return `bool done

(self, actions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

explore_before_trainingFunction · 0.45
explore_envMethod · 0.45
optim_updateMethod · 0.45
explore_envMethod · 0.45
explore_envMethod · 0.45
explore_envsMethod · 0.45
explore_envMethod · 0.45
explore_envMethod · 0.45
optim_updateMethod · 0.45

Calls 1

resetMethod · 0.45

Tested by 1