Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Deep Learning with Go

You're reading from   Hands-On Deep Learning with Go A practical guide to building and implementing neural network models using Go

Arrow left icon
Product type Paperback
Published in Aug 2019
Publisher Packt
ISBN-13 9781789340990
Length 242 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Darrell Chua Darrell Chua
Author Profile Icon Darrell Chua
Darrell Chua
Gareth Seneque Gareth Seneque
Author Profile Icon Gareth Seneque
Gareth Seneque
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Deep Learning in Go, Neural Networks, and How to Train Them
2. Introduction to Deep Learning in Go FREE CHAPTER 3. What Is a Neural Network and How Do I Train One? 4. Beyond Basic Neural Networks - Autoencoders and RBMs 5. CUDA - GPU-Accelerated Training 6. Section 2: Implementing Deep Neural Network Architectures
7. Next Word Prediction with Recurrent Neural Networks 8. Object Recognition with Convolutional Neural Networks 9. Maze Solving with Deep Q-Networks 10. Generative Models with Variational Autoencoders 11. Section 3: Pipeline, Deployment, and Beyond!
12. Building a Deep Learning Pipeline 13. Scaling Deployment 14. Other Books You May Enjoy

What is a DQN?

As you will learn, a DQN is not that different from the standard feedforward and convolutional networks that we have covered so far. Indeed, all the standard ingredients are present:

  • A representation of our data (in this example, the state of our maze and the agent trying to navigate through it)
  • Standard layers to process a representation of our maze, which also includes standard operations between these layers, such as the Tanh activation function
  • An output layer with a linear activation, which gives you predictions

Here, our predictions represent possible moves affecting the state of our input. In the case of maze solving, we are trying to predict moves that produce the maximum (and cumulative) expected reward for our player, which ultimately leads to the maze's exit. These predictions occur as part of a training loop, where the learning algorithm uses...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime