📄 pseudoinverse.m
字号:
function outputWeights = pseudoinverse(stateCollectMat, teachCollectMat)% PSEUDOINVERSE computes the outputWeights using the standard pseudoinverse% operation%% inputs:% stateCollectMat = matrix of size (nTrainingPoints-nForgetPoints) x% nInputUnits + nInternalUnits % stateCollectMat(i,j) = internal activation of unit j after the % (i + nForgetPoints)th training point has been presented to the network% teacherCollectMat is a nSamplePoints * nOuputUnits matrix that keeps% the expected output of the ESN% teacherCollectMat is the transformed(scaled, shifted etc) output see% compute_teacher for more documentation%% output:% outputWeights = vector of size (nInputUnits + nInternalUnits) x 1% containing the learnt weights%% Created April 30, 2006, D. Popovici% Copyright: Fraunhofer IAIS 2006 / Patent pending outputWeights = (pinv(stateCollectMat)*teachCollectMat)' ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -