Info

This question is closed. Reopen it to edit or answer.

i am using ga to calculate the initial weight of nn. So what should be the fitness function for ga. I have taken 12 inputs and target is 1 so how can i write the fitness function.

1 view (last 30 days)
i am using ga to calculate the initial weight of nn. So what should be the fitness function for ga. I have taken 12 inputs and target is 1 so how can i write the fitness function.

Answers (1)

Greg Heath
Greg Heath on 17 May 2017
Edited: Greg Heath on 17 May 2017
You can choose any positive semi-definite increasing fitness function you want.
The most common is
help mse
doc mse
Search
greg genetic
and
greg ga
Hope this helps.
Thank you for formally accepting my answer
Greg

Community Treasure Hunt

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

Start Hunting!