172918cad7
Added small database functionality but its commented out of running.
2020-11-03 13:43:21 -05:00
e99da737b5
Merge branch 'master' of https://github.com/danielwilczak101/EasyGA
2020-11-03 13:29:30 -05:00
2d2678e865
Changed methods and added database class
2020-11-03 13:29:21 -05:00
621fdef86d
Fixed attributes to allow setting attributes on initialization
...
e.g.
GA({
'chromosome_length' : 10,
'population_size' : 50
})
2020-11-03 13:19:09 -05:00
5b6dc8348a
Reverted back to old style of attributes.
2020-11-03 11:47:56 -05:00
cae4314581
Added more comments.
2020-11-03 02:34:16 -05:00
ba2f076a2b
Added doc strings to EasyGA ga class and attributes class.
2020-11-03 02:32:20 -05:00
d4177b08a5
Fixed comments
2020-10-30 11:56:05 -04:00
c9d30be1af
Initialization for GA with arguments
2020-10-30 11:52:11 -04:00
2d91037cdf
Add example database functionality. Still a work in progress.
2020-10-29 03:18:02 -04:00
524cbdb0ec
Input error catching
2020-10-27 18:37:12 -04:00
00af4dbbe7
Added gene mutation rate
2020-10-27 17:32:40 -04:00
0b5f42966c
Update population before mutation
2020-10-27 16:23:48 -04:00
241f5e9e89
Chnaged testing and word in setter error
2020-10-27 15:35:56 -04:00
19173bcfd2
added tests
2020-10-27 15:32:38 -04:00
ae74ce1766
Minor edits
2020-10-25 22:36:54 -04:00
d01096c1ea
Fixed print tabbing
2020-10-22 19:07:43 -04:00
c84758f8c5
Neatified ga.print stuff and altered run_testing
2020-10-22 19:05:43 -04:00
50aa1587ae
Update termination_methods.py
2020-10-22 18:28:26 -04:00
9baf3c7dc5
Fixed termination related stuff
2020-10-22 18:23:27 -04:00
4ca859c34a
Updated termination related settings
2020-10-22 18:18:00 -04:00
e5bf5166f7
Pushed something by mistake
2020-10-22 00:20:17 -04:00
1a4df37193
Merge branch 'master' of https://github.com/danielwilczak101/EasyGA
2020-10-22 00:12:13 -04:00
6c6c64e342
Updated fitness based termination and fixed some EasyGA stuff
2020-10-22 00:05:42 -04:00
74f6c8957b
Added some error checking
2020-10-22 00:03:51 -04:00
8e2698fc0d
Implemented basic functionality for using different target fitness types
2020-10-21 14:11:43 -04:00
9101072f26
Update parent_selection_methods.py
2020-10-18 23:28:07 -04:00
dd294db952
Renamed parent selection subclasses to rank/fitness
2020-10-18 21:08:54 -04:00
d8e5296ef5
Fixed spacing mistakes and added comments
2020-10-15 12:56:59 -04:00
ce62bc50e5
Added atrributes class
2020-10-15 12:47:12 -04:00
ec1b67fc00
Added Default for gene impl and setter example in Easy GA
2020-10-15 01:46:13 -04:00
5df19df643
Population.next_population and better comments
2020-10-15 00:22:58 -04:00
543b295e52
Updated gene impl
2020-10-14 23:09:55 -04:00
0090db9dce
Fixed method names and added some crossover methods and tests for floats
2020-10-13 21:07:05 -04:00
2f91dea637
Changed testing on EasyGA
2020-10-13 16:05:34 -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
645f704b19
Fixed broken defaults and changed fitness function to is_it_5
2020-10-13 00:10:06 -04:00
2485af795a
Added Jared's comments to Roulette selection
2020-10-13 00:03:00 -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
8056bbde1c
Added test_EasyGA.py
2020-10-12 23:27:46 -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
b8f1de9b52
Fixed crossover methods
2020-10-12 22:58:26 -04:00
72ae3ec1e7
Even better sort by fitness
2020-10-12 22:51:13 -04:00
60ab7cceb2
Merge branch 'master' of https://github.com/danielwilczak101/EasyGA
2020-10-12 22:48:50 -04:00
1f3e01de0a
File name problems
2020-10-12 22:46:54 -04:00
6f41ff7b7d
Fixed init file on the root
2020-10-12 22:44:50 -04:00
86fbd1a9c0
Improved the sort by fitness function
2020-10-12 22:43:41 -04:00
f277bc1684
Changed a few comments
2020-10-12 22:05:26 -04:00