-
大小: 10KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-06-11
- 语言: 其他
- 标签: Sparse subspace clustering
资源简介
Sparse subspace clustering_ algorithm, theory, and applications文章的源代码。
代码片段和文件信息
function [newL2] = bestMap(L1L2)
%bestmap: permute labels of L2 to match L1 as good as possible
% [newL2] = bestMap(L1L2);
%
% version 2.0 --May/2007
% version 1.0 --November/2003
%
% Written by Deng Cai (dengcai AT gmail.com)
%===========
L1 = L1(:);
L2 = L2(:);
if size(L1) ~= size(L2)
error(‘size(L1) must == size(L2)‘);
end
Label1 = unique(L1);
nClass1 = length(Label1);
Label2 = unique(L2);
nClass2 = length(Label2);
nClass = max(nClass1nClass2);
G = zeros(nClass);
for i=1:nClass1
for j=1:nClass2
G(ij) = length(find(L1 == Label1(i) & L2 == Label2(j)));
end
end
[ct] = hungarian(-G);
newL2 = zeros(size(L2));
for i=1:nClass2
newL2(L2 == Label2(i)) = Label1(c(i));
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-07-16 22:50 SSC_1.0\
文件 745 2015-03-21 05:07 SSC_1.0\bestMap.m
文件 1036 2010-03-03 12:47 SSC_1.0\BuildAdjacency.m
文件 1505 2010-03-03 12:46 SSC_1.0\DataProjection.m
文件 11781 2015-03-21 05:07 SSC_1.0\hungarian.m
文件 1322 2010-03-03 12:47 SSC_1.0\OutlierDetection.m
文件 120 2009-10-08 03:45 SSC_1.0\Readme.tex
文件 3615 2010-07-17 02:40 SSC_1.0\SparseCoefRecovery.m
文件 1263 2015-05-22 10:17 SSC_1.0\SpectralClustering.m
文件 3110 2015-07-16 22:49 SSC_1.0\SSC.m
相关资源
- SLEP(Sparse Learning with Efficient Projecti
- win环境下的cholmod库(已编译)
- Multi-View K-Means Clustering on Big Data
- 读取H264+发送RTP包的代码--VsParserSend
- CS294A Lecture Notes by Andrew Ng
- CS294A Lecture notes Sparse autoencoder 稀疏自
- Bundle Adjustment —A Modern Synthesis
- 轨迹聚类-trajectory-clustering
- sparse bundle adjustment
- 机器学习-层次聚类(hierarchical clust
评论
共有 条评论