Book description
Implement reinforcement learning techniques and algorithms with the help of real-world examples and recipes
Key Features
- Use PyTorch 1.x to design and build self-learning artificial intelligence (AI) models
- Implement RL algorithms to solve control and optimization challenges faced by data scientists today
- Apply modern RL libraries to simulate a controlled environment for your projects
Book Description
Reinforcement learning (RL) is a branch of machine learning that has gained popularity in recent times. It allows you to train AI models that learn from their own actions and optimize their behavior. PyTorch has also emerged as the preferred tool for training RL models because of its efficiency and ease of use.
With this book, you'll explore the important RL concepts and the implementation of algorithms in PyTorch 1.x. The recipes in the book, along with real-world examples, will help you master various RL techniques, such as dynamic programming, Monte Carlo simulations, temporal difference, and Q-learning. You'll also gain insights into industry-specific applications of these techniques. Later chapters will guide you through solving problems such as the multi-armed bandit problem and the cartpole problem using the multi-armed bandit algorithm and function approximation. You'll also learn how to use Deep Q-Networks to complete Atari games, along with how to effectively implement policy gradients. Finally, you'll discover how RL techniques are applied to Blackjack, Gridworld environments, internet advertising, and the Flappy Bird game.
By the end of this book, you'll have developed the skills you need to implement popular RL algorithms and use RL techniques to solve real-world problems.
What you will learn
- Use Q-learning and the state-action-reward-state-action (SARSA) algorithm to solve various Gridworld problems
- Develop a multi-armed bandit algorithm to optimize display advertising
- Scale up learning and control processes using Deep Q-Networks
- Simulate Markov Decision Processes, OpenAI Gym environments, and other common control problems
- Select and build RL models, evaluate their performance, and optimize and deploy them
- Use policy gradient methods to solve continuous RL problems
Who this book is for
Machine learning engineers, data scientists and AI researchers looking for quick solutions to different reinforcement learning problems will find this book useful. Although prior knowledge of machine learning concepts is required, experience with PyTorch will be useful but not necessary.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Getting Started with Reinforcement Learning and PyTorch
- Markov Decision Processes and Dynamic Programming
-
Monte Carlo Methods for Making Numerical Estimations
- Calculating Pi using the Monte Carlo method
- Performing Monte Carlo policy evaluation
- Playing Blackjack with Monte Carlo prediction
- Performing on-policy Monte Carlo control
- Developing MC control with epsilon-greedy policy
- Performing off-policy Monte Carlo control
- Developing MC control with weighted importance sampling
- Temporal Difference and Q-Learning
-
Solving Multi-armed Bandit Problems
- Creating a multi-armed bandit environment
- Solving multi-armed bandit problems with the epsilon-greedy policy
- Solving multi-armed bandit problems with the softmax exploration
- Solving multi-armed bandit problems with the upper confidence bound algorithm
- Solving internet advertising problems with a multi-armed bandit
- Solving multi-armed bandit problems with the Thompson sampling algorithm
- Solving internet advertising problems with contextual bandits
-
Scaling Up Learning with Function Approximation
- Setting up the Mountain Car environment playground
- Estimating Q-functions with gradient descent approximation
- Developing Q-learning with linear function approximation
- Developing SARSA with linear function approximation
- Incorporating batching using experience replay
- Developing Q-learning with neural network function approximation
- Solving the CartPole problem with function approximation
- Deep Q-Networks in Action
-
Implementing Policy Gradients and Policy Optimization
- Implementing the REINFORCE algorithm
- Developing the REINFORCE algorithm with baseline
- Implementing the actor-critic algorithm
- Solving Cliff Walking with the actor-critic algorithm
- Setting up the continuous Mountain Car environment
- Solving the continuous Mountain Car environment with the advantage actor-critic network
- Playing CartPole through the cross-entropy method
- Capstone Project – Playing Flappy Bird with DQN
- Other Books You May Enjoy
Product information
- Title: PyTorch 1.x Reinforcement Learning Cookbook
- Author(s):
- Release date: October 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838551964
You might also like
book
Keras Reinforcement Learning Projects
A practical guide to mastering reinforcement learning algorithms using Keras Key Features Build projects across robotics, …
book
TensorFlow 2 Reinforcement Learning Cookbook
Discover recipes for developing AI applications to solve a variety of real-world business problems using reinforcement …
book
Keras 2.x Projects
Demonstrate fundamentals of Deep Learning and neural network methodologies using Keras 2.x Key Features Experimental projects …
book
Beginning Data Analysis with Python And Jupyter
Use powerful industry-standard tools to unlock new, actionable insight from your existing dataAbout This Book Get …