メインコンテンツ

ploterrcorr

(削除予定) 誤差時系列の自己相関のプロット

ploterrcorr は将来のリリースで削除される予定です。詳細については、Transition Legacy Neural Network Code to dlnetwork Workflowsを参照してください。

コードの更新に関するアドバイスについては、バージョン履歴を参照してください。

構文

ploterrcorr(error)
ploterrcorr(errors,'outputIndex',outIdx)

説明

ploterrcorr(error) は、誤差時系列を取り、さまざまなラグについて誤差の自己相関をプロットします。ゼロ ラグの自己相関は平均二乗誤差と等しくなります。

ploterrcorr(errors,'outputIndex',outIdx) は、名前と値のペアのオプション プロパティを使用して、どの出力誤差の自己相関をプロットするかを定義します。既定は 1 です。

誤差の自己相関のプロット

ここでは、NARX ネットワークを使用して時系列の問題を解きます。

[X,T] = simplenarx_dataset;
net = narxnet(1:2,20);
[Xs,Xi,Ai,Ts] = preparets(net,X,{},T);
net = train(net,Xs,Ts,Xi,Ai);

Figure Neural Network Training (24-Jan-2026 18:16:04) contains an object of type uigridlayout.

Y = net(Xs,Xi,Ai);
E = gsubtract(Ts,Y);
ploterrcorr(E)

Figure Error Autocorrelation (ploterrcorr) contains an axes object. The axes object with title Autocorrelation of Error 1, xlabel Lag, ylabel Correlation contains 4 objects of type bar, line. These objects represent Correlations, Zero Correlation, Confidence Limit.

バージョン履歴

R2010b で導入

すべて折りたたむ