Index Ai Academy
Glossary · Foundation · Foundation math

Vectorization

Also written: vectorized, vectorize

Doing one operation on a whole array at once instead of looping over its entries one by one. It is shorter, and it is how PyTorch and NumPy run fast.

Try it now

Switch between axis 0 and axis 1 and watch which direction collapses.

Learn it properly

Tensors, shapes and broadcasting · Axes and shapes, reshape, axis=, broadcasting, and shapes through a small model. About 43 minutes.

Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Foundation · lesson 43 min

Tensors, shapes and broadcasting

Axes and shapes, reshape, axis=, broadcasting, and shapes through a small model.

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