
Week 12: Closure#
Syllabus#
NumPy, a library for numeric computing in Python, especially when handling large arrays and matrices. By examples, we cover:
NumPy array, an \(n\)-dimensional array
Compact syntax
Vectorized NumPy operators, for example
+,*NumPy functions for element-wise operations:
numpy.sqrt(),numpy.exp(),numpy.sin(),numpy.abs()Other functions and methods:
numpy.mean(),numpy.std()Indexing, slicing, and boolean indexing
NumPy arrays are mutable
Preallocation
Matplotlib, a library for scientific visualization in Python. By examples, we cover:
Line plots
Bar plots
Labels
Legends
Titles
Text