Glossary · Phase 0 · Tools
Array
A grid of numbers (a row, a table, or more) that NumPy can do math on all at once.
To do math on every item of a list, you need a loop or a comprehension. NumPy's array does math on every element directly. Think of a spreadsheet column: type one formula, and it applies to every row at once.
Try it now
Units sold (tee, hoodie, mug) on two days, times each product's price. Every cell is combined with the cell in the same position. No loop needed.
Learn it properly
NumPy arrays · Do math on whole columns at once, the foundation of every ML library. About 30 minutes.
Other terms from the same lesson
- broadcasting: NumPy and PyTorch stretching a smaller array to match a bigger one, so you can add a single number or a row to a whole table at once.
- dtype: What kind of number an array holds, such as whole numbers (int64) or decimals (float32). It sets precision and memory use.
- NumPy: A Python library for fast math on whole arrays of numbers at once.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.