Documente Academic
Documente Profesional
Documente Cultură
before in scikit-learn.
actually get the module out that has the code that you want.
The first, the explained variance ratio is actually where the eigenvalues live.
This is the way that I know that the first principle component has about 90,
91 percent of the variation in the data, and the second one has about 9, or
10 percent.
And then the second thing that I do is I look at the first and
what's the direction in of, say, x prime in the xy original feature space,
we came up with two numbers that were sort of packaged together into a vector.
And this code I will just give you in the starter code for the quiz.
I'm accessing that information by using the elements of the first PC vector.
The first thing that you get is that you print out the eigenvalues.
And then the second thing is that you'll get a scatter plot.
So you remember the red was the direction of our first principle component.
One thing that I'll add is that it looks to the eye like the red and
That this one goes all the way out to ten million,
the y axis only goes out to less than half of that, about four million.