Question 4 of 10Pro Only
What is vectorization in NumPy, and how does broadcasting work? Why are these concepts important for ML performance?
Sample answer preview
Vectorization and broadcasting are two powerful NumPy concepts that dramatically improve performance when working with large datasets in machine learning. Vectorization means performing operations on entire arrays at once instead of using explicit Python loops.
vectorizationbroadcastingSIMDperformanceelement-wise operationsshape compatibility