フィルターのクリア

featureinputlayer and convolution1dlayer

21 ビュー (過去 30 日間)
san su
san su 2022 年 3 月 20 日
コメント済み: yanqi liu 2022 年 3 月 22 日
featureinputlayer matches fullyconnectedlayer but not matches convolution1dlayer

回答 (1 件)

yanqi liu
yanqi liu 2022 年 3 月 21 日
layers = [
featureInputLayer(100,'Name','input')
fullyConnectedLayer(5, 'Name','fc')
softmaxLayer('Name','sm')
classificationLayer('Name','classification')]
layers =
4×1 Layer array with layers: 1 'input' Feature Input 100 features 2 'fc' Fully Connected 5 fully connected layer 3 'sm' Softmax softmax 4 'classification' Classification Output crossentropyex
layers2 = [
featureInputLayer(100,'Name','input')
convolution1dLayer(50, 3,'Stride',1, 'Name','cnn1d')
fullyConnectedLayer(5, 'Name','fc')
softmaxLayer('Name','sm')
classificationLayer('Name','classification')]
layers2 =
5×1 Layer array with layers: 1 'input' Feature Input 100 features 2 'cnn1d' Convolution 3 50 convolutions with stride 1 and padding [0 0] 3 'fc' Fully Connected 5 fully connected layer 4 'sm' Softmax softmax 5 'classification' Classification Output crossentropyex
  4 件のコメント
san su
san su 2022 年 3 月 22 日
編集済み: san su 2022 年 3 月 22 日
您好!matlab这个数据要通过arrayDatastore和combine处理下才能训练,也不太好发数据。后来用imageinputlayer代替了featureinputlayer就解决了,不过想要在fullyconnectedlayer后面接convolution1dlayer是不行的。和上面图中的报错一样,程序根本不走。
yanqi liu
yanqi liu 2022 年 3 月 22 日
是的,如果是做分类,则一般fullyconnectedlayer全连接后就要进入classify了,卷积层一般在中间

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by