📄 sisomap.m
字号:
% The data and corresponding class labels are stored in data.mat.
% First load data.mat to make sure the variable 'data' and 'labels' are in
% the workspace. Then culculate the distance matrix. Finally apply the
% Isomap algorithm.
%
% The code for the Isomap algorithm is written by Josh Tenenbaum. See
% details in the comments of 'IsomapII'.
alpha = 0.5;
K = 10;
load data.mat
D=distance(data, labels, alpha);
options.dims = [2];
[Y, R, E] = IsomapII(D, 'k', K, options);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -