Book Image

AI Crash Course

By : Hadelin de Ponteves
5 (2)
Book Image

AI Crash Course

5 (2)
By: Hadelin de Ponteves

Overview of this book

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.
Table of Contents (17 chapters)
16
Index

Predicting house prices

What we want to do is predict how much a certain house might cost, based on some variables. In order to do so you need to follow these four steps:

  1. Get some historical data on house sales; for this example, you'll use a dataset of about 20,000 houses in Seattle.
  2. Import this data to your code while applying some scaling to your variables (I'll explain scaling to you as we go).
  3. Build an Artificial Neural Network using any library—you'll use Keras, as it is simple and reliable.
  4. Train your ANN and get the results.

Now that you know the structure of your future code, you can start writing it. Since all the libraries that you'll use are available in Google Colab, you can easily use it to perform this task.

Uploading the dataset

Start by creating a new Google Colab notebook. Once we have created your new notebook, before you start coding anything, you have to upload your dataset. You can find this dataset...