October 2023
Beginner to intermediate
215 pages
4h 3m
English
This appendix provides a quick introduction to the Python NumPy package, which provides a useful functionality, not only for “regular” Python scripts, but also for Python-based scripts with TensorFlow. For instance, this appendix contains NumPy code samples containing loops, arrays, and lists. We also discuss dot products, the reshape() method, how to plot with Matplotlib, and examples of linear regression.
The first part of this appendix briefly discusses NumPy and some of its useful features. The second part contains examples of working arrays in NumPy, and contrasts some of the APIs for lists with the same APIs for arrays. In addition, we show how to compute the exponent-related values (such as the square ...
Read now
Unlock full access