Traing dataset,validation dataset,testing dataset in Matlab

北城以北 提交于 2021-01-29 10:54:28

问题


I am very new in Matlab and that too in Neural network.. I have 4*81 input dataset and 1*81 output/target dataset. 'divideblock' or 'dividerand' randomly split the dataset into training, validation and testing.
My question is that... After training and simulation... how to trace the individual input dataset(training, testing, validation) which are used to train the network.


so that i can able to find the error of the input dataset for testing, validation individually..

thanks in advance for any suggestion...


回答1:


Use trainInd,valInd,testInd:

[trainInd,valInd,testInd] = dividerand(Q,trainRatio,valRatio,testRatio);

see http://www.mathworks.com/help/toolbox/nnet/ref/dividerand.html .



来源:https://stackoverflow.com/questions/8712790/traing-dataset-validation-dataset-testing-dataset-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!