Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ _get_obs
Method
_get_obs
tf2.0/mlp_trader.py:191–196 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
189
190
191
def
_get_obs(self):
192
obs = np.empty(self.state_dim)
193
obs[:self.n_stock] = self.stock_owned
194
obs[self.n_stock:2*self.n_stock] = self.stock_price
195
obs[-1] = self.cash_in_hand
196
return
obs
197
198
199
Callers
2
reset
Method · 0.95
step
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected