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

Function get_data

pytorch/rl_trader.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18# Let's use AAPL (Apple), MSI (Motorola), SBUX (Starbucks)
19def get_data():
20 # returns a T x 3 list of stock prices
21 # each row is a different stock
22 # 0 = AAPL
23 # 1 = MSI
24 # 2 = SBUX
25 df = pd.read_csv('aapl_msi_sbux.csv')
26 return df.values
27
28
29

Callers 1

rl_trader.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected