📄 wiener_hopf.m
字号:
function outputWeights = wiener_hopf(stateCollectMat, teachCollectMat)
% computes ESN output weights from collected network states and collected
% teacher outputs. Mathematically this is a linear regression.
% Uses the Wiener-Hopf solution, which runs faster (but is less numerically
% stable) than if the weights are computed via the pseudoinverse.
% Created April 30, 2006, D. Popovici
% Copyright: Fraunhofer IAIS 2006 / Patent pending
runlength = size(stateCollectMat,1);
covMat = stateCollectMat' * stateCollectMat / runlength;
pVec = stateCollectMat' * teachCollectMat / runlength;
outputWeights = (inv(covMat) * pVec)';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -