Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
Artur M. G. Lourenço
Artur M. G. Lourenço le 11 Juil 2012
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

Réponse acceptée

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

Plus de réponses (1)

Artur M. G. Lourenço
Artur M. G. Lourenço le 12 Juil 2012
Network Object

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by