Index Ai Academy
Glossary · Phase 0 · Tools

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.

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.

Start this free lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write