LabExercise Numpy Exercises¶
In machine learning we are dealing with massive amounts of data. Data most often organised in tables. When all data elements in a table are of the same datatype (like an integer or a floating point number) the table can be represented with a homogeneous array.
Languages that are optimally suited for programming with data are therefore equipped with array data types that are integral part of the language. Although arrays look a lot like python lists they are not as shown in the following code.
In [1]: import numpy as np
In [2]: a = np.array([1,2,3])
In [3]: print(type(a))
<class 'numpy.ndarray'>
In [4]: print(a)