a65cdb1056
Consistent function decorator format
2020-11-20 09:19:09 -05:00
965ad352a6
Added copies for external access of function decorators
2020-11-19 23:25:33 -05:00
3d10adb2d9
Fixed scope of function decorators
2020-11-19 22:28:04 -05:00
d90618a614
Added function decorators
2020-11-19 20:47:10 -05:00
0ee545429c
Added iterable features
2020-11-19 11:46:47 -05:00
aa677a1d81
Rewrote for clarity and potential bug
2020-11-12 18:00:22 -05:00
8e2698fc0d
Implemented basic functionality for using different target fitness types
2020-10-21 14:11:43 -04:00
5df19df643
Population.next_population and better comments
2020-10-15 00:22:58 -04:00
0090db9dce
Fixed method names and added some crossover methods and tests for floats
2020-10-13 21:07:05 -04:00
fb213f04dd
Added more structure methods and some quality of life changes
...
Overall cleaned up a lot of comments.
EasyGA:
- Code cleanup.
Population:
- Added sort_by_best_fitness
- Added parent/mating pool methods.
- Renamed some methods for consistency.
Chromosome:
- Added get_gene(index).
Parent Selection:
- Improved selection methods to use the ga.selection_probability so that the roulette selection actually works well.
- Added stochastic selection.
Survivor Selection:
- Added fill_in_random and fill_in_parents_then_random.
Crossover/Mutation:
- Cleaned up code.
2020-10-13 12:48:20 -04:00
67f5133171
Fixed population creation
2020-10-12 23:18:46 -04:00
50e7166ea5
Removed useless import statements
2020-10-12 23:13:02 -04:00
e52b32f23c
Fixed some errors with the new updates
2020-10-12 17:14:24 -04:00
8137bb64d9
Some cleaning up
...
Added Population.size() and cleaned up the survivor selection.
2020-10-12 16:53:06 -04:00
96a1177a67
Updated commenting and removed old survivor selection method
...
Updated commenting and removed old survivor selection method
2020-10-12 16:11:41 -04:00
94d7c52666
Added comments & fixed small bug
...
Mostly added comments, but also fixed a small bug in parent selection where the tournament size would be much smaller than it should be.
2020-10-12 09:23:41 -04:00
88927f7415
File name changes to match the rest of framework. generation goal was setup twice in EasyGA.
2020-10-08 15:53:35 -04:00