GA-Neural Network Hybridization

How GA can be hybridized with Neural network (with reference to Matlab).

3 comentarios

Steve Grikschat
Steve Grikschat el 1 de Feb. de 2012
Can you explain a little more? Do you want to GA to select parameters for your neural network? Do you want to fit a response?
Abul Fujail
Abul Fujail el 4 de Abr. de 2012
in='input_train.tra';
p=load(in);
p=transpose(p);
net=newff([.1 .9;.1 .9;.1 .9;.1 .9],[7,1], {'logsig','logsig'},'trainlm');
net=init(net);
tr='target_train.tra';
x=load(tr);
x=transpose(x);
net.trainParam.epochs=600;
net.trainParam.show=10;
net.trainParam.lr=0.3;
net.trainParam.mc=0.6;
net.trainParam.goal=0;
[net,tr]=train(net,p,x);
y=sim(net,p);
Some codes are shown above... i have 4 input vector and 1 target vector... i want to get the optimum weight with GA so that the mean square error between target and neural network predicted result is minimum. Please suggest me how the GA can be added with this neural network code..
thomas lass
thomas lass el 24 de Dic. de 2016
I need the full codes of GA can be hybridized with Neural network

Iniciar sesión para comentar.

 Respuesta aceptada

Greg Heath
Greg Heath el 3 de Feb. de 2012

2 votos

I don't see how they can be combined to an advantage.
Just write the I/O relationship for the net in terms of input, weights and output: y = f(W,x). Then use the Global Optimization toolox to minimize the mean square error MSE = mean(e(:).^2) where e is the training error, e = (t-y) and t is the training goal.
Hope this helps.
Greg

3 comentarios

Du
Du el 10 de En. de 2016
It is smart
Shipra Kumar
Shipra Kumar el 30 de En. de 2017
Editada: Shipra Kumar el 30 de En. de 2017
greg how can u write y as a function. i am having similar difficulty while implementing ga-nn. would be glad if u could help
Greg Heath
Greg Heath el 30 de En. de 2017
y = B2+ LW*tansig( B1 + IW *x);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Feb. de 2012

Comentada:

el 30 de En. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by