CNNの回帰について
20 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Kenta
il 27 Nov 2019
こんにちは、最後の、 fullyConnectedLayer(1)を fullyConnectedLayer(300)とすればよいです。
予測ラベルのほうも300*データ数(または、データ数*300)という形式にして、
あとは、ドキュメントと同様に進めればできると思います。
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Statistics and Machine Learning Toolbox 入門 in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!