Question: Create a script to compute the number of feature dimensions N needed to represent at least 9 9 . 9 % of the variance in

Create a script to compute the number of feature dimensions N needed to represent at least 99.9% of the variance in the feature set of the humanactivity dataset using the 'pca' function.
The steps are:
Compute eigvals using the 'pca' function
Define vector cumulative_percent_variance_permode, which is a vector the same size as eigvals that contains 100 times (to convert fraction to percentage) the cumulative sum of the normalized eigenvalues
Define N as the number of eigenvectors needed to capture at least 99.9% of the variation in our dataset D.
 Create a script to compute the number of feature dimensions N

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!