Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
TensorFlow: Powerful Predictive Analytics with TensorFlow

You're reading from  TensorFlow: Powerful Predictive Analytics with TensorFlow

Product type Book
Published in Mar 2018
Publisher Packt
ISBN-13 9781789136913
Pages 164 pages
Edition 1st Edition
Languages
Author (1):
Md. Rezaul Karim Md. Rezaul Karim
Profile icon Md. Rezaul Karim

Table of Contents (8) Chapters

TensorFlow: Powerful Predictive Analytics with TensorFlow
Credits
Preface
1. From Data to Decisions – Getting Started with TensorFlow 2. Putting Data in Place – Supervised Learning for Predictive Analytics 3. Clustering Your Data – Unsupervised Learning for Predictive Analytics 4. Using Reinforcement Learning for Predictive Analytics Assessment Answers

Developing a Multiarmed Bandit's Predictive Model


One of the simplest RL problems is called n-armed bandits. The thing is there are n-many slot machines but each has different fixed payout probability. The goal is to maximize the profit by always choosing the machine with the best payout.

As mentioned earlier, we will also see how to use policy gradient that produces explicit outputs. For our multiarmed bandits, we don't need to formalize these outputs on any particular state. To be simpler, we can design our network such that it will consist of just a set of weights that are corresponding to each of the possible arms to be pulled in the bandit. Then, we will represent how good an agent thinks to pull each arm to make maximum profit. A naive way is to initialize these weights to 1 so that the agent will be optimistic about each arm's potential reward.

To update the network, we can try choosing an arm with a greedy policy that we discussed earlier. Our policy is such that the agent receives...

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 AU $19.99/month. Cancel anytime}