function testPCA
%%
clc
clear
close all
%%

filename = 'testSet.txt';
K = 1;
data = load(filename);
[lowData,reconMat] = PCA(data,K);
figure
scatter(data(:,1),data(:,2),5,'r')
hold on
scatter(reconMat(:,1),reconMat(:,2),5)
hold off

end

llp1992
github-repos/MATLAB/llp1992-MachineLearning/MachineLearning-315c00285b758a7aee0c8a80db2d2f6dfbbe9aef/PCA/testPCA.m
MachineLearning
github-repos/MATLAB/llp1992-MachineLearning
315c00285b758a7aee0c8a80db2d2f6dfbbe9aef