mirror of
https://github.com/jlengrand/MachineLearningCoursera.git
synced 2026-03-10 08:31:20 +00:00
Answers last question of the assignment about PCA
This commit is contained in:
@@ -21,6 +21,9 @@ X_rec = zeros(size(Z, 1), size(U, 1));
|
|||||||
% Notice that U(j, 1:K) is a row vector.
|
% Notice that U(j, 1:K) is a row vector.
|
||||||
%
|
%
|
||||||
|
|
||||||
|
U_reduce = U(:, 1:K);
|
||||||
|
|
||||||
|
X_rec = Z * U_reduce';
|
||||||
|
|
||||||
|
|
||||||
% =============================================================
|
% =============================================================
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user