AI Crash Course
eBook - ePub

AI Crash Course

A fun and hands-on introduction to reinforcement learning, deep learning, and artificial intelligence with Python

Hadelin de Ponteves

Share book
  1. 360 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

AI Crash Course

A fun and hands-on introduction to reinforcement learning, deep learning, and artificial intelligence with Python

Hadelin de Ponteves

Book details
Book preview
Table of contents
Citations

About This Book

Unlock the power of artificial intelligence with top Udemy AI instructor Hadelin de Ponteves.

Key Features

  • Learn from friendly, plain English explanations and practical activities
  • Put ideas into action with 5 hands-on projects that show step-by-step how to build intelligent software
  • Use AI to win classic video games and construct a virtual self-driving car

Book Description

Welcome to the Robot World 
 and start building intelligent software now!

Through his best-selling video courses, Hadelin de Ponteves has taught hundreds of thousands of people to write AI software. Now, for the first time, his hands-on, energetic approach is available as a book. Starting with the basics before easing you into more complicated formulas and notation, AI Crash Course gives you everything you need to build AI systems with reinforcement learning and deep learning. Five full working projects put the ideas into action, showing step-by-step how to build intelligent software using the best and easiest tools for AI programming, including Python, TensorFlow, Keras, and PyTorch.

AI Crash Course teaches everyone to build an AI to work in their applications. Once you've read this book, you're only limited by your imagination.

What you will learn

  • Master the basics of AI without any previous experience
  • Build fun projects, including a virtual-self-driving car and a robot warehouse worker
  • Use AI to solve real-world business problems
  • Learn how to code in Python
  • Discover the 5 principles of reinforcement learning
  • Create your own AI toolkit

Who this book is for

If you want to add AI to your skillset, this book is for you. It doesn't require data science or machine learning knowledge. Just maths basics (high school level).

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is AI Crash Course an online PDF/ePUB?
Yes, you can access AI Crash Course by Hadelin de Ponteves in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.

Information

Year
2019
ISBN
9781838645557
Edition
1

11

AI for Business – Minimize Costs with Deep Q-Learning

It's great that you can implement a deep Q-learning model to build a self-driving car. Really, once again, huge congratulations to you for that. But I also want you to be able to use deep Q-learning to solve a real-world business problem. With this next application, you'll be more than ready to add value to your work or business by leveraging AI. Even though we'll once again use a specific application, this chapter will provide you with a general AI framework, a blueprint containing the general steps of the process you have to follow when solving a real-world problem with deep Q-learning. This chapter is very important to you and for your career; I don't want you to close this book before you feel confident with the skills you'll learn here. Let's smash this next application together!

Problem to solve

When I said we were going to solve a real-world business problem, I didn't overstate the problem; the problem we're about to tackle with deep Q-learning is very similar to the following, which was solved in the real world via deep Q-learning.
In 2016, DeepMind AI minimized a big part of Google's yearly costs by reducing the Google Data Center's cooling bill by 40% using their DQN AI model (deep Q-learning). Check the link here:
https://deepmind.com/blog/deepmind-ai-reduces-google-data-centre-cooling-bill-40
In this case study, we'll do something very similar. We'll set up our own server environment, and we'll build an AI that controls the cooling and heating of the server so that it stays in an optimal range of temperatures while using the minimum of energy, therefore minimizing the costs.
Just as the DeepMind AI did, our goal will be to achieve at least 40% energy savings! Are you ready for this? Let's bring it on!
As ever, my first question to you is: What's our first step?
I'm sure by this point I don't need to spell out the answer. Let's get straight to building our environment!

Building the environment

Before we define the states, actions, and rewards, we need to set up the server and explain how it operates. We'll do that in several steps:
  1. First, we'll list all the environment parameters and variables by which the server is controlled.
  2. After that we'll set the essential assumptions of the problem, on which your AI will rely to provide a solution.
  3. Then we'll specify how you'll simulate the whole process.
  4. Finally, we'll explain the overall functioning of the server, and how the AI plays its role.

Parameters and variables of the server environment

Here is a list of all the parameters, which keep their values fixed, of the server environment:
  1. The average atmospheric temperature for each month.
  2. The optimal temperature range of the server, which we'll set as
    .
  3. The minimum temperature, below which the server fails to operate, which we'll set as
    .
  4. The maximum temperature, above which the server fails to operate, which we'll set as
    .
  5. The minimum number of users in the server, which we'll set as 10.
  6. The maximum number of users in the server, which we'll set as 100.
  7. The maximum change of users in the server per minute, which we'll set as 5; so every minute, the server can only have a change of 5 extra users or 5 fewer users at most.
  8. The minimum rate of data transmission in the server, which we'll set as 20.
  9. The maximum rate of data transmission in the server, which we'll set as 300.
  10. The maximum change of the rate of data transmission per minute, which we'll set as 10; so every minute, the rate of data transmission can only change by a maximum value of 10 in either direction.
Next, we'll list all the variables, which have values that fluctuate over time, of the server environment:
  1. The temperature of the server at a given minute.
  2. The number of users connected to the server at a given minute.
  3. The rate of data transmission at a given minute.
  4. The energy spent by the AI onto the server (to cool it down or heat it up) at a given minute.
  5. The energy that would be spent by the server's integrated cooling system to automatically bring the server's temperature back to the optimal range, whenever the server's temperature goes outside this optimal range. This is to keep...

Table of contents