Calibration and validation in ANN model

5 vues (au cours des 30 derniers jours)
Sonisa
Sonisa le 8 Juil 2016
Réponse apportée : Tejas le 17 Sep 2024
I have 3348 data, of which I want I want to use 2232 as calibration data to validate in 1116 data in ANN model. I earlier used 70% training ratio, 15% as validation ratio and 15% as test ratio.
% net.divideParam.trainRatio = 60; % net.divideParam.valRatio = 20; % net.divideParam.testRatio = 20; [net,tr] = train(net,Inputs,targets); nntraintool
Is this is the right way or is there any way? Really appreciated your time and help.
  1 commentaire
Nakul
Nakul le 7 Déc 2023
Did you get a solution?

Connectez-vous pour commenter.

Réponses (1)

Tejas
Tejas le 17 Sep 2024
Hello Sonisa,
The ‘divideParam’ function expects the ‘trainRatio’, ‘valRatio’, and ‘testRatio’ to be decimal values. Here is the correct code snippet:
net.divideParam.trainRatio = 60/100;
net.divideParam.valRatio = 20/100;
net.divideParam.testRatio = 20/100;

Catégories

En savoir plus sur Biotech and Pharmaceutical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by