Hello. I have the next Question. After the training. How can I make the Neural Network works? Example: I train the NN, after that I make run the NN and have a result, but now I need change the Target and found a result whit the new Target without to train again?. Can yours make a example.??
Thank you
Andrew

 Réponse acceptée

Greg Heath
Greg Heath le 16 Jan 2016

0 votes

The basic assumption is that all data can be considered to be random samples from the same input/output probability distribution. Accordingly, once a net is designed it is expected to work well for data that looks like it could have come from the same distribution as the design (training + validation)data.
Otherwise the net has to be adjusted to accommodate a broader class of data or multiple nets designed to form an ensemble which either combines the results or chooses the best net.
Hope this helps.
Thank you for formally accepting my answer
Greg

5 commentaires

ANDRES CONSIGLIO
ANDRES CONSIGLIO le 17 Jan 2016
Hello Greg, Thanks for your answer Have do you any example about that?? because I dont undestarnd How can I make this. I need change the target without modify the train neuron. I have many targets in different moments.It is possible??
Greg Heath
Greg Heath le 22 Jan 2016
You will have to explain in terms of equations. Your words don't make any sense to me.
Sorry,
Greg
Greg... This is the code:
net = feedforwardnet(20); net.layers{1}.transferFcn = 'tansig'; net.layers{2}.transferFcn = 'purelin';
net.divideParam.trainRatio=.7; net.divideParam.valRatio=.15; net.divideParam.testRatio=.15; net.trainParam.max_fail = 500; net.trainParam.epochs = 500; net.trainParam.goal = .001;
i=0; fecha = datetime('now'); disp(fecha); Input = xlsread('Ensayo',1); Sample = xlsread('Ensayo',3); Target = xlsread('Ensayo',2);
for n = drange(1:1)
i=i+1;
disp(i);
[net,tr] = train(net,Input,Target);
end;
Y = net(Sample);
archivo = fopen('C:\Users\D3I6\Desktop\Neurona\Salida.txt','a');
fprintf(archivo,datestr(now, 'dd-mmm-yyyy\r\n'));
fprintf(archivo,'%3.0f\r\n',Y);
fclose(archivo);
fprintf('%3.0f\n',round(Y));
fecha = datetime('now');
disp(fecha);
net = feedforwardnet(20);
net.layers{1}.transferFcn = 'tansig';
net.layers{2}.transferFcn = 'purelin';
net.divideParam.trainRatio=.7;
net.divideParam.valRatio=.15;
net.divideParam.testRatio=.15;
net.trainParam.max_fail = 500;
net.trainParam.epochs = 500;
net.trainParam.goal = .001;
i=0;
fecha = datetime('now');
disp(fecha);
Input = xlsread('Ensayo',1);
Sample = xlsread('Ensayo',3);
Target = xlsread('Ensayo',2);
for n = drange(1:1)
i=i+1;
disp(i);
[net,tr] = train(net,Input,Target);
end;
Y = net(Sample);
archivo = fopen('C:\Users\D3I6\Desktop\Neurona\Salida.txt','a');
fprintf(archivo,datestr(now, 'dd-mmm-yyyy\r\n'));
fprintf(archivo,'%3.0f\r\n',Y);
fclose(archivo);
fprintf('%3.0f\n',round(Y));
fecha = datetime('now');
disp(fecha);
Greg Heath
Greg Heath le 5 Fév 2016
I see no calculation or display of error to prove that the design is acceptable.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by