January 2018
Beginner to intermediate
316 pages
7h 14m
English
Now that we have our components, let's plot the projected iris data by first using the eigenvectors to project the original data onto the new space and then calling our plot function:
# LDA projected data lda_iris_projection = np.dot(iris_X, linear_discriminants.T) lda_iris_projection[:5,] plot(lda_iris_projection, iris_y, "LDA Projection", "LDA1", "LDA2")
We get the following output:

Notice that in this graph, the data is standing almost fully upright (even more than PCA projected data), as if the LDA components are trying to help machine learning models separate the flowers as much ...
Read now
Unlock full access