Main Content

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

plotfit

関数近似のプロット

説明

plotfit(net,inputs,targets) は、入力 inputs の範囲全体でネットワークの出力関数をプロットし、inputs の値に対応させて targets と出力データ点もプロットします。誤差範囲は出力と targets の差を示します。

プロットは、入力が 1 つのネットワークについてのみ表示されます。

ネットワークに複数の出力がある場合は、最初の出力とターゲットのみが表示されます。

plotfit(net,inputs1,targets1,name1,inputs2,targets2,name2,...) は複数のデータセットをプロットします。

plotfit(...,'outputIndex',outputIndex) は、出力要素の既定のインデックスをオーバーライドするオプションのパラメーターを使用してプロットします。

すべて折りたたむ

この例では、フィードフォワード ネットワークを使用して簡単な近似問題を解く方法を説明します。

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

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

plotfit(net,x,t)

Figure Fit (plotfit) contains 2 axes objects. Axes object 1 with title Function Fit for Output Element 1, ylabel Output and Target contains 4 objects of type line. One or more of the lines displays its values using only markers These objects represent Errors, Fit, Targets, Outputs. Axes object 2 with xlabel Input, ylabel Error contains 3 objects of type line. One or more of the lines displays its values using only markers This object represents Targets - Outputs.

入力引数

すべて折りたたむ

入力ネットワーク。ネットワーク オブジェクトとして指定します。ネットワーク オブジェクトを作成するには、feedforwardnetnarxnet などを使用します。

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

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

バージョン履歴

R2008a で導入