What is vectorization?
Vectorization is the process of converting a mathematical operation into a vector or matrix operation. In the context of deep learning, vectorization is used to speed up the computation of neural networks by performing operations on multiple inputs simultaneously.
Vectorization Demo
Note: Avoid using explicit for-loops in Python when possible, as they are slow compared to vectorized operations.