2c46e32782
Minor changes and fixes
...
__iter__ has to return an iter
2020-11-19 20:18:11 -05:00
3412c05da2
Cleaned up list usage
2020-11-19 18:02:07 -05:00
1bd806591e
Cleaned up __repr__
2020-11-19 12:34:23 -05:00
0ee545429c
Added iterable features
2020-11-19 11:46:47 -05:00
6e95ff5d9d
Rewrote data_list to __iter__
2020-11-19 10:17:22 -05:00
6c9a9205b0
Added data_list()
2020-11-19 09:53:27 -05:00
76e0439160
Renamed list() to data_list()
2020-11-19 09:53:10 -05:00
8eb436d6a5
Added list function to chromosome class
2020-11-19 01:41:01 -05:00
097e219a03
Fixed population print
2020-11-17 08:42:59 -05:00
1d97a92fb7
Changed population print
2020-11-17 08:40:51 -05:00
260d17bf91
Cleaned up the while loop
2020-11-17 01:22:05 -05:00
0d8fb6147c
Updated repr/str
2020-11-16 20:51:09 -05:00
2efebc4bcd
Fixed chromosome so now it adds to the database and added __str__ to chromo
2020-11-16 17:14:09 -05:00
22bd0527e5
Deepcopy'd data
2020-11-12 16:40:00 -05:00
e22ff55972
Worked on graphing class
2020-11-10 18:12:37 -05: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
9c6d5777b7
Removed old structure files and added empty test file
2020-10-12 23:48:26 -04:00
b42034c402
Added structure directory and improved sort by fitness
2020-10-12 23:43:28 -04:00