Commit Graph

43 Commits

Author SHA1 Message Date
4d273df5ae Adapting faster seems beneficial 2020-12-01 10:33:52 -05:00
1197447d7e Added ga.adapt() 2020-11-27 19:12:40 -05:00
1ba86c0661 Cleaned up spacing 2020-11-26 21:30:49 -05:00
33f74c4019 Set default mutation to use elitism 2020-11-23 11:54:54 -05:00
d93444490d Fixed database_name 2020-11-21 23:11:47 -05:00
056d67306b Added connection getter and setter 2020-11-21 23:04:07 -05:00
3bf69b21a6 Fixed to save all ga attributes to config table in database 2020-11-16 15:55:47 -05:00
2a1508468d Added required tables 2020-11-16 15:32:02 -05:00
8e90bd558b Config now adding to database. 2020-11-16 02:50:37 -05:00
7d8045692f changes 2020-11-15 08:59:15 +00:00
7e0134e785 Fixed bug
Potentially 0 mutations occur
2020-11-12 18:46:09 -05:00
6e34020298 Doubled mutation rate. To solve default fitness function. 2020-11-12 18:37:43 -05:00
aab353b825 Changed default percent converged and tolerance goal
Should be less likely to converge early since it requires half of the whole population to converge.
2020-11-12 17:20:52 -05:00
8548e9963c Added percent converged and renamed default methods 2020-11-12 17:10:47 -05:00
df422c6478 Fixed bug 2020-11-12 16:11:26 -05:00
0dcc43005c Target fitness type converter 2020-11-12 14:28:08 -05:00
a5cb864330 Renamed termination method 2020-11-12 14:19:38 -05:00
7a8f16c622 Added tolerance-based termination 2020-11-09 15:58:09 -05:00
a49ceda93c Added save_chromosome 2020-11-07 18:33:59 -05:00
96767ad03c Added save_population
for easier front-end usage.
2020-11-07 18:21:43 -05:00
e1f794d7b7 Database files renamed 2020-11-07 17:17:18 -05:00
c959f44fd5 GA gives graph the database 2020-11-07 13:32:34 -05:00
f1f9d70c26 Fixed graph features
- Common graph code made into a method.
- No longer needs the user to pass in the ga for graphing.
- Changed graph attribute from class to object.
- Added ga to the graph object as an attribute on initialization to avoid needing to pass it in every time you graph.
- Capitalized database/graph classes.
2020-11-07 12:43:47 -05:00
05b8fd06fa Moved all graphing to its own class 2020-11-06 22:56:16 -05:00
5c5b645c30 Added graphing capablities. It only graphs total fitness of generation. 2020-11-06 02:11:06 -05:00
f6dc70e805 Fixed variable name 2020-11-03 16:49:49 -05:00
72a8975d03 Fixed default arguments
Reverted usage format:
GA(
    chromosome_length = 20,
    population_size = 25
)
2020-11-03 14:30:43 -05:00
172918cad7 Added small database functionality but its commented out of running. 2020-11-03 13:43: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
ba2f076a2b Added doc strings to EasyGA ga class and attributes class. 2020-11-03 02:32:20 -05:00
c9d30be1af Initialization for GA with arguments 2020-10-30 11:52:11 -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
241f5e9e89 Chnaged testing and word in setter error 2020-10-27 15:35:56 -04:00
ae74ce1766 Minor edits 2020-10-25 22:36:54 -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
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
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