?? prex_matchlab.m
字號:
%PREX_MATCHLAB PRTools example on K-MEANS clustering and matching labels%% Illustrates the use of K-MEANS clustering and the match of labels.help prex_matchlabecho on rand('state',5); % Set up the random generator (used in K-MEANS) a = iris; % Find clusters in the Iris dataset J1 = kmeans(a,3); % Find about the same clusters, but they are J2 = kmeans(a,3); % labeled differently due to a random initialization. confmat(J1,J2); % Match the labels. 'Best' rotation of label names [J3,C] = matchlab(J1,J2); % since the confusion matrix is now almost diagonal. confmat(J1,J3); % Conversion from J2 to J3: J3 = C(J2,:); C echo off
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -