CNNの回帰について

20 visualizzazioni (ultimi 30 giorni)
kouhei maeda
kouhei maeda il 27 Nov 2019
Commentato: kouhei maeda il 10 Dic 2019
1つのデータを入力して,複数の予測を同時に行うCNNを作成することは可能でしょうか?
具体的には,回帰のCNNの,出力層を複数にする方法が知りたいです.
出力データの設定方法(300×1 double,1×300 double, 1×1×300 double など),下記のプログラムで変更する箇所などです.
layers = [
imageInputLayer([101 121 1])
convolution2dLayer(3,16,'Padding','same')
batchNormalizationLayer
reluLayer
averagePooling2dLayer(2,'Stride',2)
convolution2dLayer(3,32,'Padding','same')
batchNormalizationLayer
reluLayer
averagePooling2dLayer(2,'Stride',2)
dropoutLayer(0.2)
fullyConnectedLayer(1)
regressionLayer];

Risposta accettata

Kenta
Kenta il 27 Nov 2019
こんにちは、最後の、 fullyConnectedLayer(1)を fullyConnectedLayer(300)とすればよいです。
予測ラベルのほうも300*データ数(または、データ数*300)という形式にして、
あとは、ドキュメントと同様に進めればできると思います。
  1 Commento
kouhei maeda
kouhei maeda il 10 Dic 2019
ご回答ありがとうございます.

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!