Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ _get_val
Method
_get_val
pytorch/rl_trader.py:237–238 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
235
236
237
def
_get_val(self):
238
return
self.stock_owned.dot(self.stock_price) + self.cash_in_hand
239
240
241
def
_trade(self, action):
Callers
1
step
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected