Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Learn Unity ML-Agents ??? Fundamentals of Unity Machine Learning

You're reading from   Learn Unity ML-Agents ??? Fundamentals of Unity Machine Learning Incorporate new powerful ML algorithms such as Deep Reinforcement Learning for games

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789138139
Length 204 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Micheal Lanham Micheal Lanham
Author Profile Icon Micheal Lanham
Micheal Lanham
Arrow right icon
View More author details
Toc

Deep Q-learning

Now that we understand some of the foundations of neural networks, it will be really helpful to look at a very basic example in Python that demonstrates their use. Go through the following steps to build a neural network that trains an agent with deep Q-learning. Windows users, make sure that you open an Anaconda prompt and switch to the ml-agents environment with activate ml-agents, as we did earlier.

  1. Open a command prompt or shell window to an empty folder and enter the following:
      git clone https://github.com/matthiasplappert/keras-rl.git
      cd keras-rl
      python setup.py install
  1. This will install Keras RL, the reinforcement learning package for Keras. Keras is a popular library for building neural networks and other ML tasks. It can be backed by TensorFlow or Theano. Since we already have TensorFlow installed, we are good.
  2. Enter the following...
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 $19.99/month. Cancel anytime
Banner background image