csci5521/assignments/hwk02/ProportionOfVariance.m
2023-10-21 03:23:26 -05:00

17 lines
No EOL
613 B
Matlab

% implements Param_Est, returns the number of eigenvectors needed to
% explain 90% of the variance in the data, and displays a plot where the
% x-axis is the number of eigenvectors and the y-axis is the percentage of
% variance explained.
function [neigenvectors] = ProportionOfVariance(training_data)
% stack data
data = vertcat(training_data);
% TODO: perform PCA
% TODO: compute proportion of variance explained
% TODO: show figure of proportion of variance explained where the x-axis is the number of eigenvectors and the y-axis is the percentage of
% variance explained
end % Function end