perform
ネットワーク性能の計算
説明
例
関数 'perform'
を使ったネットワーク性能の計算
この例では、関数 perform
を使用してフィードフォワード ネットワークの性能を計算する方法を示します。
単純な近似データ セットのデータを使用してフィードフォワード ネットワークを作成し、その性能を計算します。
[x,t] = simplefit_dataset; net = feedforwardnet(20); net = train(net,x,t); y = net(x); perf = perform(net,t,y)
perf = 2.3654e-06
入力引数
net
— 入力ネットワーク
network
入力ネットワーク。ネットワーク オブジェクトとして指定します。ネットワーク オブジェクトを作成するには、feedforwardnet
、narxnet
などを使用します。
t
— ネットワークのターゲット
行列 | cell 配列
ネットワークのターゲット。行列または cell 配列として指定します。
y
— ネットワークの出力
行列 | cell 配列
ネットワークの出力。行列または cell 配列として指定します。
ew
— 誤差の重み
ベクトル | 行列 | cell 配列
誤差の重み。ベクトル、行列、または cell 配列として指定します。
誤差の重みは、標本、出力要素、タイム ステップ、またはネットワーク出力で定義できます。
ew = [1.0 0.5 0.7 0.2]; % Across 4 samples ew = [0.1; 0.5; 1.0]; % Across 3 elements ew = {0.1 0.2 0.3 0.5 1.0}; % Across 5 timesteps ew = {1.0; 0.5}; % Across 2 outputs
誤差の重みは、4 つのタイム ステップの 2 つの時系列 (2 つの標本) など、任意の組み合わせで定義することもできます。
ew = {[0.5 0.4],[0.3 0.5],[1.0 1.0],[0.7 0.5]};
一般的なケースでは、誤差の重みの次元はターゲットとまったく同じであり、各ターゲット値に誤差の重みが関連付けられます。
既定の誤差の重みでは、すべての誤差が同様に扱われます。
ew = {1}
出力引数
perf
— ネットワーク性能
スカラー
ネットワーク性能。スカラーとして返されます。
バージョン履歴
R2010b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)