WHAT IS NUMPY?
NumPy is a Python library that provides many convenient methods and improved code performance. NumPy contains a core library for scientific computing in Python, with performant multi-dimensional arrays and vectorized math functions, along with support for linear algebra and random numbers.
NumPy is modeled after MatLab, with support for lists, arrays, and so forth. NumPy is easier to use than MatLab, and it is very common in TensorFlow code as well as Python code.
Useful NumPy Features
The NumPy package contains the ndarray object, which encapsulates multi-dimensional arrays of homogeneous data types. Many ndarray operations are performed in compiled code to improve performance.
There are important differences between NumPy arrays and standard Python sequences. First, NumPy arrays have a fixed size, whereas Python lists can expand dynamically. Second, NumPy arrays are homogeneous, which means that the elements in a NumPy array must have the same data type. Third, NumPy...