怎么新建Series​Network啊?一​次性划分好维度?。

daylength=20;
%% 使用TrainNetwork训练LSTM网络
rmse=zeros(daylength,1);
for i=1:daylength
net(i) = trainNetwork(XTrain,YTrain(i,:),layers,options);
YPred = predict(net(i),XTrain);
rmse(i)=sqrt(mean((YTrain(i,:)-YPred).^2));
end
这样一个训练得出20个net~是一个1*20的维度~
net(i) = trainNetwork(XTrain,YTrain(i,:),layers,options);
这句matlab提示要我改~因为每次运行维度都改~我想事先划分好维度~
但是net是SeriesNetwork这类~我不知道怎么新建

 채택된 답변

0 개 추천

你要不要先找一下软件自带的例子?
根本就不需要自己写rmse这种东西,直接trainNetwork就是训练网络了

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 FPGA, ASIC, and SoC Development에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!