The Maths You Actually NeedLesson 1 of 76

Module 1 · Vectors, and the space they live in

Everything a model sees is numbers

In this lesson

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

This chapter’s goalTurn a real piece of data into a vector and defend the choices made, compute a length, a distance, a projection and a cosine by hand, and explain using the 1/√d rule why a similarity threshold that works in a 3-dimensional picture is meaningless in a 768-dimensional embedding space.

This chapter’s media

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

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Two ways to write down eleven at nightHour as one number, 0 to 2323:00 and 00:00 are 23 apart, the largest gapthe column allowsMidnight looks as far from 11 p.m. as 11 p.m.is from middayThe model learns a cliff at midnight that isnot in the worldNothing warns you: the column is numeric andthe fit convergesHour as a point on a circleTwo columns: sin of 2 pi h over 24, and cos ofthe same23:00 and 00:00 land next to each other, asthey shouldThe distance between two hours is the distanceround the clockOne extra column, and no extra model capacityneededThe same fact, two encodings, and the model can only see the numbers. The circular version routinelyimproves a demand forecast more than a larger network does, and it costs two lines of pandas.
The same fact, two encodings, and the model can only see the numbers. The circular version routinely improves a demand forecast more than a larger network does, and it costs two lines of pandas.

Figure 1.1

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

The step nobody writes about

Every course starts at “the model learns from data”. It skips the step before, which is the one that decides how well anything afterwards can possibly work. A neural network cannot see a photograph, a Tuesday, or the word shukriya. It sees a list of numbers, and somebody chose that list.

That choice is called the representation, and it is not neutral. If you throw information away here, no amount of training recovers it.

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

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Everything a model sees is numbers’, in The Maths You Actually Need. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/maths-you-need/turning-things-into-numbers (Accessed: 29 November 2026).