How to select model after ANN modelling in MATLAB?

2 visualizaciones (últimos 30 días)
Mohammad Mainul
Mohammad Mainul el 14 de Nov. de 2023
Respondida: Shreeya el 16 de Nov. de 2023
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.

Respuesta aceptada

Shreeya
Shreeya el 16 de Nov. de 2023
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.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by