This document discusses applying principal component analysis (PCA) and logistic regression to a wine dataset. It loads the wine data, applies PCA to reduce the data to 2 components, trains a logistic regression classifier on the PCA-reduced training data and tests it on the PCA-reduced test data. It calculates accuracy and creates visualizations of the training and test data classifications.
This document discusses applying principal component analysis (PCA) and logistic regression to a wine dataset. It loads the wine data, applies PCA to reduce the data to 2 components, trains a logistic regression classifier on the PCA-reduced training data and tests it on the PCA-reduced test data. It calculates accuracy and creates visualizations of the training and test data classifications.
This document discusses applying principal component analysis (PCA) and logistic regression to a wine dataset. It loads the wine data, applies PCA to reduce the data to 2 components, trains a logistic regression classifier on the PCA-reduced training data and tests it on the PCA-reduced test data. It calculates accuracy and creates visualizations of the training and test data classifications.