nprtool関数を用いてプロットしたROC曲線のAUCの算出方法について
5 views (last 30 days)
Show older comments
Neural Network Toolboxの中のnprtool関数についての質問です。 nprtool関数を実行するとニューラルネットワークのguiが立ち上がると思います。 このguiのTrain NetworkというページにPlot ROCというボタンがあり、これを押すとROC曲線が表示されますが、このROC曲線のAUC(Area Under the Curve)はどのように求めたらよいのでしょう? nprtoolのguiではAUCは求められないのでしょうか?
0 Comments
Accepted Answer
michio
on 4 Jan 2018
残念ながら nprtoolのGUIでは求めることはできません。 コマンドベースで実行する必要がありますが、例えば roc 関数 (Neural Network Toolbox) で各出力クラスの受信者動作特性を計算した後に、trapz関数 (MATLAB本体)で簡単に積分して AUCを計算することができるかと思います。下記は roc関数のドキュメンテーションページのサンプルプログラムからですが、、
load iris_dataset
net = patternnet(20);
net = train(net,irisInputs,irisTargets);
irisOutputs = sim(net,irisInputs);
[tpr,fpr,thresholds] = roc(irisTargets,irisOutputs)
AUC1 = trapz(fpr{1}, tpr{1})
など。
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!