标签:
利用 t-SNE 高维数据的可视化
具体软件和教程见: http://lvdmaaten.github.io/tsne/
简要介绍下用法:
% Load data
load ’mnist_train.mat’
ind = randperm(size(train_X, 1));
train_X = train_X(ind(1:5000),:);
train_labels = train_labels(ind(1:5000));
% Set parameters
no_dims = 2;
initial_dims = 50;
perplexity = 30;
% Run t??SNE
mappedX = tsne(train_X, [], no_dims, initial_dims, perplexity);
% Plot results
gscatter(mappedX(:,1), mappedX(:,2), train_labels);
示意结果截图:
标签:
原文地址:http://www.cnblogs.com/wangxiaocvpr/p/5550778.html