CNNの回帰について
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Kenta
2019년 11월 27일
こんにちは、最後の、 fullyConnectedLayer(1)を fullyConnectedLayer(300)とすればよいです。
予測ラベルのほうも300*データ数(または、データ数*300)という形式にして、
あとは、ドキュメントと同様に進めればできると思います。
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!