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

3 次查看(过去 30 天)
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

采纳的回答

Greg Heath
Greg Heath 2012-7-18
%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

更多回答(1 个)

Artur M. G. Lourenço
Network Object

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by