how to write a code for fitness function(i don't have the exact fitness function but have the training data)?
Show older comments
i have training data with 3 input parameters and 2 output parameters, based on that I want to use neural network to train that data and use it as a fitness function in optimization of output parameters using genetic algorithm.
4 Comments
Greg Heath
on 9 Jun 2015
What you are asking doesn't make sense. What exactly do you mean when you say that you want to use the genetic algorithm on a trained network to optimize output parameters.
What output parameters? What are you trying to minimize or maximize?
Walter Roberson
on 9 Jun 2015
If I understand correctly, your genetic algorithm will take three parameters, and will pass the three parameters into a NN prediction routine that has been trained on the training data, with the NN prediction routine predicting two outputs, and the genetic algorithm will then use those two outputs to compute a fitness value? So the overall task of the genetic algorithm stage will be to find the three inputs that predict two values that when passed into the fitness function have the smallest result?
sethu
on 12 Jun 2015
Accepted Answer
More Answers (1)
milad moradpour
on 16 Jun 2015
Edited: Greg Heath
on 26 Sep 2016
Dear sethu,
I have a similar problem. I am able to
run an external simulator to obtain
corresponding outputs for the certain
inputs. Or I could avoid dynamic
cosimulation with the external
simulator, run a parametric analysis
with the simulator, and finally use a
set of inputs-outputs data to find a
mapping function. But, for each case,
the question still is that how could I
define the objective function in a
genetic algorithm code. Did you succeed
to solve the problem?
Regards, Milad
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!