Calibration and validation in ANN model
5 ビュー (過去 30 日間)
古いコメントを表示
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 件)
Tejas
2024 年 9 月 17 日
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;
Refer to this documentation for more information:https://www.mathworks.com/help/deeplearning/gs/fit-data-with-a-neural-network.html#:~:text=Set%20up%20the%20division%20of%20data
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Biotech and Pharmaceutical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!