Codiqo

Understanding AI · lesson 3 of 60 · about 4 minutes

AI, Machine Learning and Deep Learning

Three words you'll hear all the time, and how they fit inside each other like boxes.

What you'll learn

  • Explain that machine learning is one kind of AI
  • Explain that deep learning is one kind of machine learning
  • Use the three terms correctly

Boxes inside boxes

AI is the biggest box: any program doing something that seems intelligent, including old programs built entirely from rules, like a chess program written by hand.

Machine learning is a box inside AI: programs that learn patterns from examples instead of being given the rules.

Deep learning is a box inside machine learning: learning with large neural networks, which have many layers. Face recognition and chatbots use deep learning.

In Python, `in` checks whether something is in a list. Deep learning is in every bigger box.

ai = ["rules", "machine learning", "deep learning"]
machine_learning = ["machine learning", "deep learning"]
print("deep learning" in ai)
print("rules" in machine_learning)

Output

True
False

Tip

All deep learning is machine learning, and all machine learning is AI. Not the other way round.

Now try it yourself

This lesson is free in Codiqo, with 6 questions on what you just read. You can only learn to code by writing code, so it ends with a short program you write yourself, which we run and check straight away.