Commit Graph

15 Commits

Author SHA1 Message Date
cdc2b6bdfb Removed get/set 2020-11-22 15:58:11 -05:00
73461f7915 Comments updated 2020-11-20 19:06:55 -05:00
aa1537b5dd Fixed comment. 2020-11-20 09:16:56 -05:00
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
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
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
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
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
b42034c402 Added structure directory and improved sort by fitness 2020-10-12 23:43:28 -04:00