MATLAB: Dividerand – neural network training

Deep Learning Toolboxdivideinddividerandneural network

I'm using a neural network model and for some simulations I've used the function 'dividerand' instead of 'divideind'. Without using the command [net,tr]=train(net,…..) where I could check how the data were randomly separated in training, validation and testing datasets, is it possible to verify how the random separation was executed (analysing the indices)?

Best Answer

If you do not include tr as a training output, the only way to obtain the dividerand indices is to call dividerand before calling newff/newfit/fitnet/patternnet/feedforwardnet and nullify it's use within those net creation functions.
However, if all you are concerned about is duplicating a run, just specify the same random number seed before calling the creation function.
Hope this helps.
Greg