f4ba75561d
Simplified adapt_population
2021-01-23 19:10:31 -05:00
8c7c7beb5b
Removed walrus and updated names
2021-01-23 19:09:35 -05:00
b2246a1db1
Delete _config.yml
2021-01-20 04:28:54 -05:00
ece073350b
Fixed variable issue
2021-01-20 04:01:37 -05:00
432a355ee9
Fix buggy database file creation. Change structure of config table. Updated all functions to work with new table style.
2021-01-20 03:04:49 -05:00
f50d5c2efa
format changes and addded block comments
2021-01-06 11:38:37 -05:00
baaf68bb30
Removed walrus operators
2021-01-06 10:23:43 -05:00
8d90056c92
Rewrote default GA methods format
2021-01-06 10:22:26 -05:00
411e26ab7c
Fixed sort by best fitness
2021-01-04 23:44:40 -05:00
fe2804bdbc
Customizable update_population method
2021-01-04 23:01:54 -05:00
42b78bcfea
Added self to parameters
2021-01-04 22:59:17 -05:00
0386be436f
Consistent format for setting a slice of items
2021-01-01 16:30:45 -05:00
94793b1b05
Added decorator file and fixed old crossover usage in adapt method
2021-01-01 16:11:14 -05:00
b2b1775e16
Added decorators file
2021-01-01 16:09:27 -05:00
423c9884a8
Update Crossover.py
2021-01-01 11:23:20 -05:00
d122344a11
Cleaned up decorator doc-strings
2021-01-01 10:55:01 -05:00
e19576f890
Specific exceptions raised.
2021-01-01 10:48:59 -05:00
46ef4e818d
Cleaned up alighnment
2020-12-31 11:54:22 -05:00
827d86e3b1
Corrections using new names
2020-12-30 16:22:09 -05:00
7c55bf431b
Renamed files
2020-12-30 16:21:47 -05:00
7dc9c17e74
Minor import changes
2020-12-30 14:36:50 -05:00
54a774abd2
Add back files with new names
2020-12-30 14:35:43 -05:00
cbc2fafb07
Delete files for renaming
2020-12-30 14:35:08 -05:00
21c12c2bcd
Changed for more general usage and cleaned up previous push
2020-12-30 09:08:43 -05:00
0c59c429eb
Added decorator for repetitive code and modified for multiple children per crossover
2020-12-29 22:53:20 -05:00
49e20ad20d
Simpler appending to next population since it will be sorted anyways
2020-12-29 22:51:14 -05:00
1e2bb1f542
Added most list functionality
2020-12-29 19:36:46 -05:00
6aa4b8b82f
Cleaned up gene comparison method
2020-12-29 19:36:06 -05:00
57756833dc
Cleaned up repetitive code and sorted the population before mutating
2020-12-29 19:35:26 -05:00
9ad3f100ec
Using ga.weighted_random method
2020-12-29 19:34:35 -05:00
88161bd114
Added function info to decorators
2020-12-29 19:33:46 -05:00
5fc910fd17
Added customizable weighted random method
2020-12-29 19:33:04 -05:00
a1d72ec868
Using try except
2020-12-28 15:06:29 -05:00
d0894c18fb
Added reset run method
2020-12-28 11:14:23 -05:00
364edff3a3
Added run attribute and check for the name of the first argument
2020-12-28 11:13:15 -05:00
e46e1bce96
Changed __setattr__ for clean inheritance approach
...
No longer necessary to prepend built-in method names with _ when defining bound class methods
2020-12-27 14:55:46 -05:00
98600314c0
Now supporting method overriding instead of attribute setting
2020-12-27 10:12:31 -05:00
2b6f0e2e97
Decorators cleanly preserve both function names and doc-strings.
2020-12-27 10:11:43 -05:00
44683c7fae
Fixed decorator name issue
2020-12-26 15:53:45 -05:00
adbfdd4dbe
Fixed decorator name issue and default weight
2020-12-26 15:19:19 -05:00
5d88de1195
Removed initialization methods
2020-12-24 11:22:01 -05:00
f5244e3cc9
Cleaner structure repr without making assumptions on usage
2020-12-23 11:41:27 -05:00
adab92216f
Removed unnecessary code and decorator naming
2020-12-21 09:56:56 -05:00
c43eef38c4
Added automatic casting to all methods
2020-12-20 22:01:15 -05:00
97c614c74c
Fixed repr format string
2020-12-20 15:53:56 -05:00
27cc94e488
Added automatic casting for easier usage
2020-12-20 15:33:12 -05:00
97cb4e869c
Added another mutation method
2020-12-20 14:01:26 -05:00
91da18cf54
Additional error checking for permutation methods
2020-12-20 14:00:52 -05:00
ef3be9d5d1
New data structure features make initializing the population much simpler
2020-12-20 14:00:10 -05:00
a15803e7ef
Proper repr implementations, improved index_of method, and improved initialization
...
- Repr now supports reversal using eval i.e. obj == eval(repr(obj)) for any data object. This assumes a GA object called ga.
- Index of now supports local searching if an estimate of the index is given.
- Initialization of data objects is now easier and works for any iterable input e.g. ga.make_chromosome
2020-12-20 13:59:12 -05:00