5
Your First AI Model – Beware the Bandits!
In this chapter, you'll get to grips with your very first AI model! You're going to make a model that will solve the very well-known multi-armed bandit problem. This is a classic problem in AI, and it's also widely encountered in many real-world business problems.
The multi-armed bandit problem
Imagine you are in Las Vegas, in your favorite casino. You are in a room containing five slot machines. For each of them the game is the same: you bet a certain amount of money, say 1 dollar, you pull the arm, and then the machine will either take your money, or give you twice your money back. Remember the rewards we talked about in the previous chapter? Let's say that if the machine takes your money, your ...
Get AI Crash Course now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.