フィルターのクリア

Error in weighted classification layer implementation (following matlab documentation)

3 ビュー (過去 30 日間)
Diego Alvarez Estevez
Diego Alvarez Estevez 2019 年 4 月 23 日
I am following Matlab documentation to implement a custom weighted cross-entropy loss function:
However, when I try the code on R2018b I get the following error:
No appropriate method, property, or field 'OutputSize' for class 'weightedClassificationLayer'
Anybody knows what the problem is?
My layer sequence:
layers = [ ...
sequenceInputLayer(dimPattern)
lstmLayer(numHiddenUnits,'OutputMode','last')
fullyConnectedLayer(numClasses)
softmaxLayer
weightedClassificationLayer(lossWeights)
];
Maybe handy: I am using a mini-batch datastore as input to "trainNetwork", does it make a difference?

回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by