CNNの回帰について
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
kouhei maeda
am 27 Nov. 2019
Kommentiert: kouhei maeda
am 10 Dez. 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];
0 Kommentare
Akzeptierte Antwort
Kenta
am 27 Nov. 2019
こんにちは、最後の、 fullyConnectedLayer(1)を fullyConnectedLayer(300)とすればよいです。
予測ラベルのほうも300*データ数(または、データ数*300)という形式にして、
あとは、ドキュメントと同様に進めればできると思います。
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox 入門 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!