CrashCourse · @crashcourse

Cats vs Dogs? Let's make an AI to settle this: Crash Course AI #19

Uploaded June 7, 2020 · Length 13:05

Cats vs Dogs? Let's make an AI to settle this: Crash Course AI #19

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.

  1. 0:00

    Hey, John-Green-bot.

  2. 0:01

    I’ve been thinking really hard about a HUGE life decision.

  3. 0:05

    I want to adopt a pet, and I’ve narrowed it down to either a cat or a dog.

  4. 0:10

    But there are so many great cats and dogs on adoption websites.

  5. 0:14

    John Green Bot: The Grey Parrot (Psittacus erithacus) has an average lifespan in captivity

  6. 0:19

    of 40 to 60 years.

  7. 0:21

    Jabril: Yeah, birds are great and all but I was thinking maybe a cat or a dog.

  8. 0:26

    John Green Bot: Turtles will need a tank approximately 7.5 to 15 times their shell length in centimeters.

  9. 0:34

    Jabril: Yeah, you’re no help.

  10. 0:37

    Come on Spot and Mr. Cuddles.

  11. 0:40

    It looks like I’m going to have to figure this out myself, and by myself I mean

  12. 0:45

    make an AI figure it out.

  13. 0:46

    Today we’re going to train an AI to go through the list of pets and make the best decision

  14. 0:50

    for me based on data!

  15. 0:52

    That’ll make things less stressful… surely, nothing will go wrong with this… right?

  16. 0:58

    INTRO

  17. 1:06

    Hey, I’m Jabril and welcome to Crash Course AI.

  18. 1:09

    Today we’re going to build a fairly simple AI program to find out if adopting a cat or

  19. 1:13

    a dog will make me happier.

  20. 1:15

    This is a pretty subjective question, and if I use data from the internet, I’ll have

  21. 1:18

    a lot of strong opinions.

  22. 1:19

    So, I’ll conduct my own survey where I collect data about people’s cats and dogs and their

  23. 1:24

    happiness.

  24. 1:25

    I don't care what pet I get, as long as it makes me happy, so I won't even include cat

  25. 1:29

    and dog labels in the model.

  26. 1:31

    Like in previous labs, I’ll be writing all of my code using a language called Python

  27. 1:35

    in a tool called Google Colaboratory.

  28. 1:37

    And as you watch this video, you can follow along with the code in your browser from the

  29. 1:41

    link we put in the description.

  30. 1:42

    In these Colaboratory files, there’s some regular text explaining what I’m trying

  31. 1:46

    to do, and pieces of code that you can run by pushing the play button.

  32. 1:49

    These pieces of code build on each other, so keep in mind that you have to run them

  33. 1:53

    in order from top to bottom, otherwise you might get an error.

  34. 1:57

    To actually run the code or make changes to it, you’ll have to either click “open