How to select model after ANN modelling in MATLAB?
2 ビュー (過去 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!