ying zhang
2011-Feb-07 13:00 UTC
[R] can I use the output of a neural network as the fitness function of genetic algorithm?
Hi Everyone, I need to use genetic algorithm to find the minimum. The problem is, I cannot define the fitness function, but I can build a neural network from the input data and use the output as a fitness function. Can this be done? The other problem is, I know there are a few package in R related to GA. So far I know all of them take a specific function as fitness function, is there any package can Solve my problem? Many thanks Ying [[alternative HTML version deleted]]
Changbin Du
2011-Feb-07 16:03 UTC
[R] can I use the output of a neural network as the fitness function of genetic algorithm?
In SAS, you can output the parameter estimation related to fitness function, I dont know this in R. Once you have output from SAS, you can write down your function and feed them into optim in R to solve your problem. On Mon, Feb 7, 2011 at 5:00 AM, ying zhang <ying.zhang@struq.com> wrote:> Hi Everyone, > > > > I need to use genetic algorithm to find the minimum. The problem is, I > cannot define the fitness function, but I can build a neural network from > the input data and use > > the output as a fitness function. Can this be done? > > > > The other problem is, I know there are a few package in R related to GA. > So far I know all of them take a specific function as fitness function, > is > there any package can > > Solve my problem? Many thanks > > > > Ying > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Sincerely, Changbin -- Changbin Du DOE Joint Genome Institute Bldg 400 Rm 457 2800 Mitchell Dr Walnut Creet, CA 94598 Phone: 925-927-2856 [[alternative HTML version deleted]]