フィルターのクリア

Validation Loss = Nan

14 ビュー (過去 30 日間)
aryan ramesh
aryan ramesh 2022 年 2 月 6 日
コメント済み: aryan ramesh 2022 年 2 月 8 日
Hello, I'm attempting to utilize lstm to categorize data but the validation loss Is Nan.
I reduced the learning rates to 1e-12 but I am still receiving Nan results.
Appreciate any guidance.
Best Regards,
options = trainingOptions("sgdm", ...
"MaxEpochs",400, ...
"InitialLearnRate",0.000000000001, ...
"Shuffle", 'never', ...
"Plots","training-progress",...
"ValidationData",{XValidation,YValidation},...
'ValidationFrequency',1);
%%
layers = [ ...
sequenceInputLayer(1)
bilstmLayer(100,"OutputMode","last")
fullyConnectedLayer(2)
softmaxLayer
classificationLayer];
% displaySequence(tones_cell{1}, label1{1})
net = trainNetwork(XTrain,labelTrain, layers, options )
YPred = classify(net,XTest);
  1 件のコメント
KSSV
KSSV 2022 年 2 月 7 日
Increase the learning rate and see.

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

採用された回答

yanqi liu
yanqi liu 2022 年 2 月 8 日
yes,sir,may be add dropoutLayer、batchNormalizationLayer to the model
  1 件のコメント
aryan ramesh
aryan ramesh 2022 年 2 月 8 日
I added the dropoutLayer. Tks

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by