epochs

Learn · Module 01 · Python and maths toolkit · Lesson 5 of 5

NumPy in one sitting

NumPy is how Python does maths on whole arrays at once. Five ideas cover most of what ML code needs.

3 minute read

In short
  • Arrays have shapes; check them whenever something looks wrong.
  • Vectorised operations replace loops and run much faster.
  • Broadcasting stretches smaller arrays to match; @ multiplies matrices.

This lesson is part of Pro

The first two lessons of every module are free. Pro opens every lesson and every project.

See Pro plansFrom ₹119 a month. No auto-renewal.