Machine Learning, FoundationsLesson 3 of 92

Module 1 · What learning is, and what it is not

What a row is, and why that decision is the whole project

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 3 of 9 in this chapter

This chapter’s goalTake a vague business question, state it as a dataset with a defined row, a defined target and a defined moment of prediction, name the loss and the baseline it must beat, and justify in one paragraph whether machine learning is the right tool at all.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:44Not available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

The two objects

Almost all of classical machine learning operates on two objects. A matrix X with one row per thing and one column per measurement, and a vector y with one entry per row: the answer you want the model to produce.

Python
import numpy as np
X = np.array([[35, 42000, 3],
              [51, 88000, 0],
              [24, 19000, 7]])   # age, annual income, late payments
y = np.array([0, 0, 1])          # defaulted within 12 months?
X.shape, y.shape   # ((3, 3), (3,))

That is it. Three rows, three columns, three labels. Everything later in this course (trees, boosting, neural networks) is a different way of turning the left object into a guess at the right one.

The interesting part is not the code. It is the sentence you had to commit to before you could type it.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘What a row is, and why that decision is the whole project’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/the-shape-of-a-dataset (Accessed: 29 November 2026).