How to select model after ANN modelling in MATLAB?
1 次查看(过去 30 天)
显示 更早的评论
I am doing ANN regression modelling using nntool in MATLAB. To evaluate my model after training, I calculated the mean absolute percentage error (MAPE) of the train, test and validation set and also the overall mean mape of the sets.
Using one hidden layer with 8 neurons, and softmax and purelin activation functions in hidden and output layer, I found the following MAPE results:
- Train MAPE: 20.41057169%,
- Test MAPE: 29.81276326%,
- Val MAPE: 34.91220059%.
In another architecture with one hidden layer with 100 neurons, and logsig and tansig activation functions in hidden and output layer, I found the following MAPE results:
- Train MAPE: 0.349799425%,
- Test MAPE: 35.47232397%,
- Val MAPE: 34.87608854%.
My question which model can be considered as a generalized model? Which one should I use? Do I need to change the architecture and try more?
Any suggestions are welcome. Thanks for reading.
0 个评论
采纳的回答
Shreeya
2023-11-16
Hello @Mohammad Mainul
According to my understanding, the second architecture seems to be overfitting the training data, as suggested by the difference between the training and testing MAPE values. The first architecture can be considered as a better generalized model. But hyperparameter tuning can help reduce MAPE while avoiding overfitting. Refer to the documentation below for hyderparameter optimization.
Bayesian optimization can be a good starting point. You can refer to the documentation below for more details:
Hope this helps.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!