Skip to main content
4 votes
Accepted

How do I design a fitness function that weighs the importance of eating food?

A human analogy can help you here (a variance). Initialize all the agents with an initial value $x$; we will call this energyUnits. I Will talk later more about ...
Ugnes's user avatar
  • 2,023
2 votes

Why does the fitness of my neural network to play tic-tac-toe keep oscillating?

What I notice is that the network's fitness keeps climbing up and falling down again. It seems that my current approach only evolves certain patterns on placing signs on the board and once random ...
Dennis Soemers's user avatar
  • 10.5k
2 votes
Accepted

How to design a fitness function for the 8-queens problem?

Here you can find an example of how to apply genetic algorithms to solve the 8-queens problem. The proposed fitness function is based on the chessboard arrangement, and in particular, it is inversely ...
PieCot's user avatar
  • 138
1 vote

How to create a good fitness function?

No magical formula As already stated in this answer, the definition of the fitness function depends on the problem, given that it essentially determines the solutions that you are looking for, and it ...
nbro's user avatar
  • 41.4k
1 vote

How to create a good fitness function?

In my experience, the fitness function is a way to define the goal of a genetic algorithm. It provides a way to compare how "good" two solutions are, for example, for mate selection and for deleting "...
S. McGrew's user avatar
  • 363
1 vote

Why does the fitness of my neural network to play tic-tac-toe keep oscillating?

The characteristics of the game are these. Moves are in two dimensions Only three possible first moves because of symmetry (corner, edge, middle) Never more than seven possible moves after that No ...
Douglas Daseeco's user avatar
1 vote

How to improve the performance of my model trained with NEAT for a drone to learn how to fly?

Seem like time is a good fitness, though you need it to engage into learning side sensor inputs and side movement. I would consider adding a bit of randomness to the environment. How about adding ...
Alexus's user avatar
  • 236

Only top scored, non community-wiki answers of a minimum length are eligible