To combine two networks in a series manner

2 次查看(过去 30 天)
Dear All,
Greetings of the day
Currently, I am working on the RUL of the battery. I have created an RNN based model. I would wish if anyone can assist me in combining the autoencoder model with my current RNN model so that I can research more with regards to the combination of the two networks. I would be grateful for the assistance in this regard.
Regards
net = layrecnet(1:2,N_node);
net.trainFcn = 'trainlm';
net.trainParam.show = 5;
net.trainParam.lr=lr;
net.trainParam.epochs = 1000;
net.performFcn = 'mse';
net = init(net);
net = train(net,data_train,target_train);
capacity_estimated=(sim(net, data_test))';
capacity_error = gsubtract(target_test',capacity_estimated);
RMSE = rms(capacity_error)*100
MSE=(mean((capacity_estimated-target_test').^2))*100
MAPE=(sum(abs((capacity_estimated-target_test')./(capacity_estimated)))./length(target_test'))*100
MAE=(sum(abs(capacity_estimated-target_test'))./length(target_test'))*100
SD=(std(capacity_estimated-target_test'))*100

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Propulsion and Power Systems 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by