Applied AI

Machine Learning

Machine learning the way it is used at work: split data properly, evaluate with the right metric and take the model to production.

units
8
lessons
23
minutes
134
exercises
138

The first unit is free, no credit card required. The other 7 unlock when you buy the course or go Pro. Single course: $12.99, one-time payment.

What's in the course.

From the fundamentals to production, with metrics you actually calculate.

8 units, 23 lessons, and about 134 minutes of practice, a few minutes at a time.

What machine learning is, what kind of problem it solves and how to split data the right way.

In this unit, you'll learn to

  • Tell hand-written rules apart from models that learn
  • Recognise regression, classification and clustering
  • Split training, validation and test sets without leakage

Lessons

  1. What machine learning is, unlocked6 exercises · 5 min
  2. Splitting the data, unlocked6 exercises · 6 min

Try it for real.

Ready to train some models? Real exercises from this course, solved step by step, exactly as they appear in the app.

138 exercises across 6 types in this course

  • Pick the best answer49
  • Write Python26
  • Match24
  • Fill in the code16
  • Tap the chart15
  • Put it in order8

Write Python. Python 3 running in your browser, nothing to install. Write it, run it, see the output.

Train and test

The customers are already shuffled. Use cutoff to put the first 80% in train and the rest in test. Print len(train) and then the test list.

customers = ["C01", "C02", "C03", "C04", "C05", "C06", "C07", "C08", "C09", "C10"] cutoff = int(len(customers) * 0.8) train = customers[:cutoff] test = customers[cutoff:] print(len(train)) print(test)

Correct. customers[:cutoff] takes from the start up to just before the cut, and customers[cutoff:] takes from the cut to the end. The two parts never overlap, which is what matters. In practice, shuffle first, as here, or split by date when time matters.

Practice exams for this course

This course prepares you for these exams. Try free questions before you practice in the app.