どうすれば最終出力層​の全ラベルに対するス​コア一覧が見えますか​?

9 visualizaciones (últimos 30 días)
howahowa46
howahowa46 el 16 de Sept. de 2020
Comentada: howahowa46 el 17 de Sept. de 2020
DeepLearning評価キットに含まれる D2_1_predict() を用いてalexnetで推論しているのですが。
最終の出力層 output において どのラベルのスコア(確率)が幾らだったのかが知りたいのですが
何か取り出してくる方法はありますでしょうか?
下記のように書いて、scoresにスコアの一覧を取得できたのですが
数字の羅列だけで対応するラベル(クラス名?)がわかりません。
%% AlexNetのネットワークに画像をいれて予測をします。
YPred = classify(net,I)
YPred = char(YPred);
scores = activations(net,I,'output','OutputAs','columns');

Respuestas (1)

Shunichi Kusano
Shunichi Kusano el 16 de Sept. de 2020
こんにちは。
net.Layers(end).Classes
でクラスを見ることができるので、あとはscoresと対照をとればそれぞれのスコアがわかります。
  1 comentario
howahowa46
howahowa46 el 17 de Sept. de 2020
ありがとうございます。クラス一覧が取得できました!

Iniciar sesión para comentar.

Categorías

Más información sobre イメージを使用した深層学習 en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!