Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 needed to represent at least 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 cumulativepercentvariancepermode, which is a vector the same size as eigvals that contains times to convert fraction to percentage the cumulative sum of the normalized eigenvalues
Define as the number of eigenvectors needed to capture at least of the variation in our dataset
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started