AI Crash Course
eBook - ePub

AI Crash Course

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

  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

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).

Trusted byย 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2019
Print ISBN
9781838645359
Edition
1
eBook ISBN
9781838645557

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

  1. Why subscribe?
  2. Contributors
  3. Preface
  4. Welcome to the Robot World
  5. Discover Your AI Toolkit
  6. Python Fundamentals โ€“ Learn How to Code in Python
  7. AI Foundation Techniques
  8. Your First AI Model โ€“ Beware the Bandits!
  9. AI for Sales and Advertising โ€“ Sell like the Wolf of AI Street
  10. Welcome to Q-Learning
  11. AI for Logistics โ€“ Robots in a Warehouse
  12. Going Pro with Artificial Brains โ€“ Deep Q-Learning
  13. AI for Autonomous Vehicles โ€“ Build a Self-Driving Car
  14. AI for Business โ€“ Minimize Costs with Deep Q-Learning
  15. Deep Convolutional Q-Learning
  16. AI for Games โ€“ Become the Master at Snake
  17. Recap and Conclusion
  18. Other Books You May Enjoy
  19. Index

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
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 990+ topics, weโ€™ve got you covered! Learn about our mission
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 about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere โ€” even offline. Perfect for commutes or when youโ€™re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
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 & Artificial Intelligence (AI) & Semantics. We have over one million books available in our catalogue for you to explore.