iterative_spca.m

来自「The goal of SPID is to provide the user 」· M 代码 · 共 26 行

M
26
字号
function a_next = iterative_spca(x, a_current, output)
%ITERATIVE_SPCA Performs single SPCA iteration
%
%   a_next = iterative_spca(x, a_current, output)
%
% Performs single SPCA iteration. This function is used by the SPCA
% function.
%
%

% This file is part of the Matlab Toolbox for Dimensionality Reduction v0.1b.
% The toolbox can be obtained from http://www.cs.unimaas.nl/l.vandermaaten
% You are free to use, change, or redistribute this code in any way you
% want. However, it is appreciated if you maintain the name of the original
% author.
%
% (C) Laurens van der Maaten
% Maastricht University, 2007

    % Perform a single SPCA update
    s_x = size(x);
    n_features = s_x(1,1);
    y = a_current' * x;
    phi_2 = (1 / pdist([a_current'; zeros(1, n_features)])) * y * x;
    a_next = a_current + phi_2;

⌨️ 快捷键说明

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