Skip to content

Commit

Permalink
Update NEAT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenaartje committed Aug 17, 2017
1 parent 25f8840 commit 7fc2cb4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mkdocs/templates/docs/NEAT.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ The constructor comes with various options. The constructor works as follows:
new Neat(input, output, fitnessFunction, options); // options should be an object
```

Every generation, each genome will be tested on the `fitnessFunction`. The
fitness function should return a score (a number). Through evolution, the
genomes will try to _maximize_ the output of the fitness function. Negative
scores are allowed.

You can provide the following options in an object for the `options` argument:

<details>
<summary>popsize</summary>
Sets the population size of each generation. Default is 50.
Expand Down

0 comments on commit 7fc2cb4

Please sign in to comment.