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(8300)
Test-Driven Development with Java by Alan Mellor(6724)
Data Augmentation with Python by Duc Haba(6639)
Principles of Data Fabric by Sonia Mezzetta(6390)
Learn Blender Simulations the Right Way by Stephen Pearson(6290)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6161)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5807)
RPA Solution Architect's Handbook by Sachin Sahgal(5559)
Big Data Analysis with Python by Ivan Marin(5365)
The Infinite Retina by Robert Scoble Irena Cronin(5249)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5147)
Pretrain Vision and Large Language Models in Python by Emily Webber(4328)
Infrastructure as Code for Beginners by Russ McKendrick(4089)
Functional Programming in JavaScript by Mantyla Dan(4038)
The Age of Surveillance Capitalism by Shoshana Zuboff(3950)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3804)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3608)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3579)
