Machine Learning, Tutorial, Dimensionality Reduction, Deep Learning, Python.
executing the preceding code, we should now see the decision regions for the training data reduced to two principal component axes. For the sake of completeness, let’s plot the decision regions of the logistic regression on the transformed test dataset as well to see if it can separate the classes