CrashCourse · @crashcourse
Cats vs Dogs? Let's make an AI to settle this: Crash Course AI #19
Uploaded June 7, 2020 · Length 13:05
Summary
Learn to build a simple AI using Python and Google Colab to predict pet happiness based on features like cuddliness and energy.
- build ai python
- pet happiness ai
- machine learning tutorial
- neural network basics
- crash course ai
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Hey, John-Green-bot.
- 0:01
I’ve been thinking really hard about a HUGE life decision.
- 0:05
I want to adopt a pet, and I’ve narrowed it down to either a cat or a dog.
- 0:10
But there are so many great cats and dogs on adoption websites.
- 0:14
John Green Bot: The Grey Parrot (Psittacus erithacus) has an average lifespan in captivity
- 0:19
of 40 to 60 years.
- 0:21
Jabril: Yeah, birds are great and all but I was thinking maybe a cat or a dog.
- 0:26
John Green Bot: Turtles will need a tank approximately 7.5 to 15 times their shell length in centimeters.
- 0:34
Jabril: Yeah, you’re no help.
- 0:37
Come on Spot and Mr. Cuddles.
- 0:40
It looks like I’m going to have to figure this out myself, and by myself I mean
- 0:45
make an AI figure it out.
- 0:46
Today we’re going to train an AI to go through the list of pets and make the best decision
- 0:50
for me based on data!
- 0:52
That’ll make things less stressful… surely, nothing will go wrong with this… right?
- 0:58
INTRO
- 1:06
Hey, I’m Jabril and welcome to Crash Course AI.
- 1:09
Today we’re going to build a fairly simple AI program to find out if adopting a cat or
- 1:13
a dog will make me happier.
- 1:15
This is a pretty subjective question, and if I use data from the internet, I’ll have
- 1:18
a lot of strong opinions.
- 1:19
So, I’ll conduct my own survey where I collect data about people’s cats and dogs and their
- 1:24
happiness.
- 1:25
I don't care what pet I get, as long as it makes me happy, so I won't even include cat
- 1:29
and dog labels in the model.
- 1:31
Like in previous labs, I’ll be writing all of my code using a language called Python
- 1:35
in a tool called Google Colaboratory.
- 1:37
And as you watch this video, you can follow along with the code in your browser from the
- 1:41
link we put in the description.
- 1:42
In these Colaboratory files, there’s some regular text explaining what I’m trying
- 1:46
to do, and pieces of code that you can run by pushing the play button.
- 1:49
These pieces of code build on each other, so keep in mind that you have to run them
- 1:53
in order from top to bottom, otherwise you might get an error.
- 1:57
To actually run the code or make changes to it, you’ll have to either click “open


