forked from CodeReclaimers/neat-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified Genome and FFGenome._mutate_add_connection, and fixed a bu…
…g which systematically prevented connections from being added to some nodes. Temporarily commented connection adding code in Genome and FFGenome.add_hidden_nodes, as these always made the network fully connected regardless of configuration. Removed the scary "replace the __dict__" code in checkpoint restoration. Population now throws an exception when all species go extinct, as this is probably something the user should handle. Simplified speciation code. Simplified stats logging code, and keep more detailed per-generation fitness statistics. Added tests to exercise more of the genome-handling code. Simplification of XOR example. visualize.draw_net now takes an optional dictionary which is used to provide labels to be used in place of node IDs in the rendered network. Population now tracks the number of fitness function evaluations directly. Fixed bug (elitism setting was being interpreted as a float instead of an int). Removed compatibility threshold adjustment to control the number of species. Removed species age-adjusted fitness scheme as does not appear to be necessary: the speciation and stagnation mechanisms already provide the same benefit (as far as I can tell). Removed now-unused configuration items from examples. General cleanup of code and comments.
- Loading branch information
1 parent
00bc844
commit 22843ab
Showing
19 changed files
with
365 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.