training network plot accuracy intead of rmse
hello everyone
I am using LSTM for data prediction and I use trainNetwork for it but When I run my cde the training plot only plots rmse and I want to plot accuracy ?
Here is my layers and Option what sholud I do
numResponses = 1 ;
featureDimension =1;
numHiddenUnits =200;
layers = [ …
sequenceInputLayer(featureDimension)
lstmLayer(numHiddenUnits)
fullyConnectedLayer(numResponses)
regressionLayer
];
maxepochs = 500;
miniBatchSize = 45 ;
options = trainingOptions(‘adam’, … %%adam
‘MaxEpochs’,maxepochs, …
‘GradientThreshold’,1, …
‘Shuffle’,’every-epoch’, …
‘ValidationData’,{XVal_ZaMir,YVal_ZaMir}, …
‘ValidationFrequency’,25,…
‘InitialLearnRate’,0.005, …
‘MiniBatchSize’,miniBatchSize, …
‘LearnRateSchedule’,’piecewise’, …
‘LearnRateDropPeriod’,50, …
‘LearnRateDropFactor’,0.1, …
‘Verbose’,1, …
‘Plots’,’training-progress’);hello everyone
I am using LSTM for data prediction and I use trainNetwork for it but When I run my cde the training plot only plots rmse and I want to plot accuracy ?
Here is my layers and Option what sholud I do
numResponses = 1 ;
featureDimension =1;
numHiddenUnits =200;
layers = [ …
sequenceInputLayer(featureDimension)
lstmLayer(numHiddenUnits)
fullyConnectedLayer(numResponses)
regressionLayer
];
maxepochs = 500;
miniBatchSize = 45 ;
options = trainingOptions(‘adam’, … %%adam
‘MaxEpochs’,maxepochs, …
‘GradientThreshold’,1, …
‘Shuffle’,’every-epoch’, …
‘ValidationData’,{XVal_ZaMir,YVal_ZaMir}, …
‘ValidationFrequency’,25,…
‘InitialLearnRate’,0.005, …
‘MiniBatchSize’,miniBatchSize, …
‘LearnRateSchedule’,’piecewise’, …
‘LearnRateDropPeriod’,50, …
‘LearnRateDropFactor’,0.1, …
‘Verbose’,1, …
‘Plots’,’training-progress’); hello everyone
I am using LSTM for data prediction and I use trainNetwork for it but When I run my cde the training plot only plots rmse and I want to plot accuracy ?
Here is my layers and Option what sholud I do
numResponses = 1 ;
featureDimension =1;
numHiddenUnits =200;
layers = [ …
sequenceInputLayer(featureDimension)
lstmLayer(numHiddenUnits)
fullyConnectedLayer(numResponses)
regressionLayer
];
maxepochs = 500;
miniBatchSize = 45 ;
options = trainingOptions(‘adam’, … %%adam
‘MaxEpochs’,maxepochs, …
‘GradientThreshold’,1, …
‘Shuffle’,’every-epoch’, …
‘ValidationData’,{XVal_ZaMir,YVal_ZaMir}, …
‘ValidationFrequency’,25,…
‘InitialLearnRate’,0.005, …
‘MiniBatchSize’,miniBatchSize, …
‘LearnRateSchedule’,’piecewise’, …
‘LearnRateDropPeriod’,50, …
‘LearnRateDropFactor’,0.1, …
‘Verbose’,1, …
‘Plots’,’training-progress’); lstm, trainnetwork MATLAB Answers — New Questions