dualmaxsparsecovariance.m.svn-base

来自「a function inside machine learning」· SVN-BASE 代码 · 共 12 行

SVN-BASE
12
字号
function b = dualMaxSparseCovariance(K, Kj, Y, Yj)
%A function to compute the maximum sparse covariance vector between matrix
%K and vector y
%We just use the example with the highest absolute covariance
numExamples = size(Kj, 1); 
columnIndices = (1:numExamples)'; 

[covariances, bs] = sparseCovariances(K, Kj, Y, Yj, columnIndices); 

[maxCovariance, i] = max(covariances);
b = zeros(numExamples, 1); 
b(i) = bs(i);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?