Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

plotregression

線形回帰のプロット

説明

plotregression(targets,outputs) は、outputs に対する targets の線形回帰をプロットします。

plotregression(targs1,outs1,'name1',targs2,outs2,'name2',...) は、複数のプロットを生成します。

すべて折りたたむ

この例では、フィードフォワード ネットの線形回帰をプロットする方法を示します。

[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net = train(net,x,t);

Figure Neural Network Training (27-Jul-2023 15:35:04) contains an object of type uigridlayout.

y = net(x);
plotregression(t,y,'Regression')

Figure Regression (plotregression) contains an axes object. The axes object with title Regression: R=0.99999, xlabel Target, ylabel Output ~= 1*Target + -0.00095 contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Y = T, Fit, Data.

入力引数

すべて折りたたむ

ネットワークのターゲット。行列または cell 配列として指定します。

ネットワークの出力。行列または cell 配列として指定します。

バージョン履歴

R2008a で導入