Vectorization
Vectorization is a computational technique used to replace explicit, element-by-element loops (such as Python for-loops) with optimized operations on entire data structures simultaneously. In machine learning, vectorization leverages highly optimized linear algebra libraries to perform mathematical operations—like calculating the elementwise sum of vectors or processing whole minibatches of examples—at once. This approach dramatically reduces execution time by yielding order-of-magnitude speedups, simplifies code, reduces the potential for bugs, and increases portability by offloading mathematics to underlying libraries.
0
1
Contributors are:
Who are from:
Tags
Data Science
D2L
Dive into Deep Learning @ D2L
Related
Values in Python
Operators & Operands in Python
Functions in Python
Statements in Python
Expressions in Python
Debugging in Python
Python Classes and Objects
Data Structures in Python
Vectorization in python
Vectorization
Dot Product
Vector Norm
Vectorization
Creating Matrix
Basic Matrix Routines
Creating Sparse Matrices
Sparse Matrix Routines
Sparse Matrix Functions
Decompositions
Sparse Matrix Decomposition
NumPy and SciPy Matrix Functions
Vectorization