メインコンテンツ

plotroc

(削除予定) 受信者動作特性のプロット

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

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

説明

plotroc(targets,outputs) は、各出力クラスの受信者動作特性をプロットします。各曲線がプロットの左端および上端により多く沿っているほど、分類の精度が高いことを示します。

ヒント

plotroc は categorical ターゲットをサポートしていません。categorical ターゲットの ROC メトリクスをプロットするには、rocmetrics を使用します。

plotroc(targets1,outputs2,'name1',...) は、複数のプロットを生成します。

すべて折りたたむ

この例では、パターン ネットワークの各出力クラスの受信者動作特性をプロットする方法を示します。

load simplecluster_dataset
net = patternnet(20);
net = train(net,simpleclusterInputs,simpleclusterTargets);

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

simpleclusterOutputs = sim(net,simpleclusterInputs);
plotroc(simpleclusterTargets,simpleclusterOutputs)

Figure Receiver Operating Characteristic (plotroc) contains an axes object. The axes object with title ROC, xlabel False Positive Rate, ylabel True Positive Rate contains 8 objects of type line. These objects represent Class 1, Class 2, Class 3, Class 4.

入力引数

すべて折りたたむ

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

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

バージョン履歴

R2008a で導入

すべて折りたたむ