MATLAB: New Toolbox RNA: access the data divided by net.divide function

annDeep Learning Toolboxneural networksredes neurais artificiasrnatoolbox

I'm trying adapt me with new ANN toolbox and use the functions pre-programed usually i wore the complex lines for divide the data for ANN in test,training and validation. Now i used the fuctions pre-progamed but i don´t know how access the data set create by function net.divide.
Ex.:
net.divideFcn = 'dividerand';
net.divideMode = 'time';
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
where i can access the data divided by net.divide function?
thanks in advance

Best Answer

%Apparently, they can only be recovered AFTER training via the structure tr
[x,t] = simplefit_dataset;
rng(4151941) % Initialize RNG
net = newff(x,t); % Random weight initialization
[net tr ] = train(net,x,t);
tr.trainInd
tr.valInd
tr.testInd
tr.trainMask{:}
tr.valMask{:}
tr.testMask{:}
%Hope this helps
%Greg