Could you please help me covert MATLAB code to Keras.
inputSize = 3;
numResponses = 2 ;
numHiddenUnits1 = 25;
numHiddenUnits2 = 20;
layers = [ ... sequenceInputLayer(inputSize)
lstmLayer(numHiddenUnits1)
lstmLayer(numHiddenUnits2)
fullyConnectedLayer(numResponses)
regressionLayer
];
opts = trainingOptions('adam', ...
'MaxEpochs',500, ...
'GradientThreshold',1, ...
'InitialLearnRate',0.2, ...
'LearnRateSchedule','piecewise', ...
'LearnRateDropPeriod',125, ...
'LearnRateDropFactor',0.2, ...
'Verbose',0, ...
'Plots','training-progress');