Skip to content

Glossary: Calculus for ML

Shape

Also written: .shape, reshape

An array's size along each axis, such as (20, 2) for 20 cafés and 2 features. `.reshape(-1, 1)` turns a flat array into a column, with -1 meaning 'work out this size yourself'.

Where the book teaches it

Related terms

VectorBroadcasting