QUESTION 2 You don't have to plot the points as characters; you can use different colors/shapes as long as you include a legend.   USE PYTHON AND HANDWRITE BOTH METHODS   Data: https://archive.ics.uci.edu/ml/datasets/Wine   Take the wine dataset from the UC Irvine machine learning data repository at https://archive.ics.uci.edu/ml/datasets/Wine (a)  Plot the eigenvalues of the covariance matrix in sorted order. How many principal components should be used to represent this dataset? Why? (c)  Compute the first two principal components of this dataset, and project it onto those components. Now produce a scatter plot of this two dimensional dataset, where data items of class 1 are plotted as a '1', class 2 as a '2', and so on.

icon
Related questions
Question

QUESTION 2

You don't have to plot the points as characters; you can use different colors/shapes as long as you include a legend.

 

USE PYTHON AND HANDWRITE BOTH METHODS

 

Data: https://archive.ics.uci.edu/ml/datasets/Wine

 

Take the wine dataset from the UC Irvine machine learning data repository at https://archive.ics.uci.edu/ml/datasets/Wine

(a)  Plot the eigenvalues of the covariance matrix in sorted order. How many principal components should be used to represent this dataset? Why?

(c)  Compute the first two principal components of this dataset, and project it onto those components. Now produce a scatter plot of this two dimensional dataset, where data items of class 1 are plotted as a '1', class 2 as a '2', and so on.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Concept of memory addresses in pointers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, ai-and-machine-learning and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS