利用 t-SNE 高维数据的可视化
利用 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 tSNE
mappedX = tsne(train_X, [], no_dims, initial_dims, perplexity);
% Plot results
gscatter(mappedX(:,1), mappedX(:,2), train_labels);
示意结果截图:
Stay Hungry,Stay Foolish ...