How to validate NARX network
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I trained a NARX model with 5 neurons and 2 time delays. after training, I validated my model on unseen data using the following code. However, the error is very close to zero (MAE:0.07 RMSE: 0.19). I also attached the figure, showing the real data and estimated data. I think something is wrong with the code that I use for validation. Could you please help me? I think I can't use this result in my paper since it seem like a fake result.
Xtest1 = tonndata(testinput1,false,false);
Ttest1 = tonndata(testtarget1,false,false);
[xtest1,xitest1,aitest1,ttest1] = preparets(net,Xtest1,{},Ttest1);
outputtest1 = finalnet(xtest1,xitest1,aitest1);
errortest1 = gsubtract(ttest1,outputtest1);
rmse1= sqrt(mean((cell2mat(errortest1))'.^2))
MAE1= abs(mean(cell2mat(errortest1))')
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!