TensorFlow 2 Reinforcement Learning Cookbook by Praveen Palanisamy
Author:Praveen Palanisamy
Language: eng
Format: epub, mobi
Publisher: Packt Publishing Pvt Ltd
Published: 2021-01-15T00:00:00+00:00
Now, it's time for you to get one of the agents you built as part of the previous chapter to train and test this real data-backed stock market trading environment. For now, let's test the environment with a simple, random agent:if __name__ == "__main__":
env = StockTradingVisualContinuousEnv()
obs = env.reset()
for _ in range(600):
action = env.action_space.sample()
next_obs, reward, done, _ = env.step(action)
env.render()
How it worksâ¦
To simulate a stock market, a real stock market data stream must be used. An offline file-based stream is utilized as an alternative to a web-based API, which would require internet connectivity and potentially a user account to fetch market data. The file stream contains the market data in a standard format: Date, Open, High, Low, Close, Adj-Close, and Volume.
Download
TensorFlow 2 Reinforcement Learning Cookbook by Praveen Palanisamy.mobi
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7835)
Hadoop in Practice by Alex Holmes(5650)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5495)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(4473)
Functional Programming in JavaScript by Mantyla Dan(3712)
The Age of Surveillance Capitalism by Shoshana Zuboff(3394)
Blockchain Basics by Daniel Drescher(2867)
Big Data Analysis with Python by Ivan Marin(2830)
The Rosie Effect by Graeme Simsion(2689)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2523)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2460)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2443)
Dawn of the New Everything by Jaron Lanier(2423)
The Art Of Deception by Kevin Mitnick(2278)
Rapid Viz: A New Method for the Rapid Visualization of Ideas by Kurt Hanks & Larry Belliston(2174)
Human Dynamics Research in Smart and Connected Communities by Shih-Lung Shaw & Daniel Sui(2167)
Once Upon an Algorithm by Martin Erwig(2135)
Building Machine Learning Systems with Python by Richert Willi Coelho Luis Pedro(2047)
Test-Driven Development with Java by Alan Mellor(2038)