Maths for ML / Notation

⌊x⌋, ⌈x⌉\lfloor x \rfloor,\ \lceil x \rceil

floor / ceiling

Brackets and normsBeginner

Say it “floor of x / ceiling of x”

Floor rounds down to an integer, ceiling rounds up.

Example

⌈10/3⌉=4\lceil 10/3 \rceil = 4

Batches needed for 10 items at 3 per batch.

In code

math.floor(x), math.ceil(x)
torch.floor(x)

Where you’ll see it in ML

Output sizes of conv layers, number of batches.

← All 94 symbols