How can i reduce the number of dimensions of an matrix without losing important information?
1 view (last 30 days)
Show older comments
I have some input data on which i apply k-means. After this i want to plot3 the results, but my data has more than 3 dimensions. How can i reduce it to 3 dimensions without losing (topological) information. Should i use kohonen soms or pca or what? thank you in advance
1 Comment
sorena mirzaie
on 5 Jun 2013
Edited: Walter Roberson
on 5 Jun 2013
I have a problem like u...i used pca:
[pc,score,latent,tsquare] = princomp(X);
red_dim = score(:,1:50);
bu t i dont know how to apply this to my input data :(
(my inputs data (X) has 320 feature and i want to reduce them to about 50 )
Answers (1)
Walter Roberson
on 5 Jun 2013
If non-redundant topological information is present in more than 3 dimensions, then it is not possible to reduce the data to 3 dimensions without losing topological information.
As a mental exercise, try reducing a triangular pyramid (3 dimensions) to 2 dimensions without the 4th vertex ending up "further away" from some of the 2D vertices than others of the vertices.
3 Comments
Iain
on 5 Jun 2013
You can only present 3D information easily. You need to figure out how you want to get your x,y,z coordinates from you "n" dimensions, and then use the other dimensions, to, say, stick in the appropriate legend.
Alternatively, you can use the 4th/5th/etc. dimension in some way to control the colour/marker/etc. of the points you plot.
See Also
Categories
Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!