MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / _get_obs

Method _get_obs

tf2.0/keras_trader.py:210–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208
209
210 def _get_obs(self):
211 obs = np.empty(self.state_dim)
212 obs[:self.n_stock] = self.stock_owned
213 obs[self.n_stock:2*self.n_stock] = self.stock_price
214 obs[-1] = self.cash_in_hand
215 return obs
216
217
218

Callers 2

resetMethod · 0.95
stepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected