Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Greg Heath
Greg Heath il 18 Lug 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

Più risposte (1)

Artur M. G. Lourenço
Artur M. G. Lourenço il 12 Lug 2012
Network Object

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by