MATLAB Answers

priya
0

What is fitness function?

Asked by priya
on 31 May 2012
What is fitness function?
my prob is multiclass classification what ll be its fitness function

  1 Comment

duplicate is at http://www.mathworks.com/matlabcentral/answers/39278-my-prob-is-multi-class-classification-for-tat-how-can-i-form-fitness-function-can-anyone-explain

Sign in to comment.

1 Answer

Answer by Thomas
on 31 May 2012

Fitness function is used in Genetic Algorithm in each iteration of the algorithm to evaluate the quality of all the proposed solutions to your problem in the current population. The fitness function evaluates how good a single solution in a population is, e.g. if you are trying to find for what x-value a function has it's y-minimum with a Genetic algorithm, the fitness function for a unit might simply be the negative y-value (the smaller the value higher the fitness function).

  0 Comments

Sign in to comment.