October 2018
Beginner
362 pages
9h 32m
English
Vectors are one-dimensional arrays of integers. Geometrically, they store the direction and magnitude of change from a point. We'll see how this works in machine learning algorithms when we discuss principal component analysis (PCA) in the next few pages. Vectors in Python are created as numpy array objects:
my_vector = np.array([5,6])
Vectors can be written in several ways:

Read now
Unlock full access