AA

作者: 在彼处 | 来源:发表于2018-11-27 09:39 被阅读0次

train = [ 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0 0 1 0 1 0 1 0 ];

test = [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 ];

train1 = train ./ repmat(log(sum(train,2)),[1,size(train,1)]);

train1(isnan(train1)) = 0; train1(isinf(train1)) = 0; % 将除数为0得到的异常值置为0

sim = train * train1; clear train1;

AA评价指标


                            

难理解的代码

相关文章

网友评论

      本文标题:AA

      本文链接:https://www.haomeiwen.com/subject/khvwqqtx.html