Main Content

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

plotroc

受信者動作特性のプロット

説明

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 (27-Jul-2023 15:34:59) 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 で導入

参考