
上QQ阅读APP看书,第一时间看更新
The NumPy library
If we had to choose a definitive must-use library for use in this book, and a non-trivial mathematical application written in Python, it would have to be NumPy. This library will help us implement applications using statistics and linear algebra routines with the following components:
- A versatile and performant N-dimensional array object
- Many mathematical functions that can be applied to these arrays in a seamless manner
- Linear algebra primitives
- Random number distributions and a powerful statistics package
- Compatibility with all the major machine learning packages
The NumPy library will be used extensively throughout this book, using many of its primitives to simplify the concept explanations with code.