output to the preceding code is as followsyou can actually look at those valuesthey're not going to mean lot to youbecause you can' really picture dimensions anywaybut we did that just so you can see that it' actually doing something with principal components solet' evaluate our resultsqsjouqdbfyqmbjofe@wbsjbodf@sbujpqsjoutvn qdbfyqmbjofe@wbsjbodf@sbujpthe pca model gives us back something called fyqmbjofe@wbsjbodf@sbujp basicallythat tells you how much of the variance in the original data was preserved as reduced it down to dimensions solet' go ahead and take look at thatwhat it gives you back is actually list of items for the dimensions that we preserved this is telling me that in the first dimension can actually preserve of the variance in the dataand the second dimension only gave me an additional of variance if sum it togetherthese dimensions that projected my data down intoi still preserved over of the variance in the source data we can see that dimensions weren' really necessary to capture all the information in this datasetwhich is pretty interesting it' pretty cool stuffif you think about itwhy do you think that might bewellmaybe the overall size of the flower has some relationship to the species at its center maybe it' the ratio of length to width for the petal and the sepal you knowsome of these things probably move together in concert with each other for given speciesor for given overall size of flower soperhaps there are relationships between these dimensions that pca is extracting on its own it' pretty cooland pretty powerful stuff let' go ahead and visualize this the whole point of reducing this down to dimensions was so that we could make nice little scatter plot of itat least that' our objective for this little example here sowe're going to do little bit of matplotlib magic here to do that there is some sort of fancy stuff going on here that should at least mention sowhat we're going to do is create list of colorsredgreen and blue we're going to create list of target idsso that the values and map to the different iris species that we have