Pls, I need your help. I have a matrix of features X(100*2071 double). Then, I applied svd() on X as in the following code. I read a lot about svd (singular value decompisition) but I can not understand what is the purpose from s as in the code.
Mostra commenti meno recenti
clear; clc;
load X; [ s, ~ ] = svd( X ); D = s( :, 1:20 );%100*20 %%Take only the 20 columns from s
3 Commenti
M
il 10 Gen 2018
Using
[U,S,V] = svd(X)
U is the left singular vector such that
X=U*S*V'
The purpose of s in your code depends on what you want to do ...
You keep only the 20 columns from s, one reason to do that would be if you want to use this singular vector to make a project a set of data in order to decrease the dimension of your dataset.
In this what you want to do ?
FAS
il 10 Gen 2018
Risposte (0)
Categorie
Scopri di più su Semantic Segmentation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!