Commit Graph

642 Commits

Author SHA1 Message Date
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
ad8243fb6c Added percent_converged
Termination when a specified percent of the population has converged.
2020-11-12 17:14:16 -05:00
3e9c2fc784 Multiple updates
- Removed obsolete whole_chromosome method.
- Renamed single_gene to individual_genes.
- Rewrote single_genes to use copied data instead of modifying original data.
- Added random_selection_then_cross.
2020-11-12 17:13:23 -05:00
8548e9963c Added percent converged and renamed default methods 2020-11-12 17:10:47 -05:00
6dd98f0d8d fixed omw 2020-11-12 16:49:34 -05:00
5a72a8493d Fixed variable names 2020-11-12 16:47:36 -05:00
6b35a7398a Merge branch 'master' of https://github.com/danielwilczak101/EasyGA 2020-11-12 16:43:20 -05:00
0429c3756c Fixed x,y,title labels 2020-11-12 16:41:12 -05:00
22bd0527e5 Deepcopy'd data 2020-11-12 16:40:00 -05:00
80377b58e7 Cleaned up graph code 2020-11-12 16:34:07 -05:00
b0c4bd79c6 Override label variables with attributes 2020-11-12 16:24:57 -05:00
4bd8d0a908 Cleaned up code 2020-11-12 16:15:34 -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
435c6c1335 Variable name changes and fix to y_data on plots 2020-11-12 12:28:50 -05:00
357df1609f General graph features 2020-11-12 12:11:04 -05:00
555c187e39 Fixed yscale 2020-11-12 10:06:27 -05:00
e22ff55972 Worked on graphing class 2020-11-10 18:12:37 -05:00
f5c3a5833a Improved tolerance termination 2020-11-09 16:08:30 -05:00
9c455957f2 Edge case for converting fitness to minimization
Avoid catastrophic cancellations
2020-11-09 16:02:01 -05:00
ce0d879f82 Added whitespace 2020-11-09 15:58:49 -05:00
7a8f16c622 Added tolerance-based termination 2020-11-09 15:58:09 -05:00
4902e7c931 Added init to database folder 2020-11-08 18:11:34 -05:00
874f4362fa Minor touches 2020-11-07 18:35:57 -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
87beba1209 Added comment 2020-11-07 01:57:30 -05:00
918c4f4d5e Updated database ad graph functions. 2020-11-07 01:54:37 -05:00
05b8fd06fa Moved all graphing to its own class 2020-11-06 22:56:16 -05:00
690fa9712e More efficient insertion of entire population
Executes the sql command over the entire population at once.
2020-11-06 21:31:20 -05:00
cb3d91d894 Changed run testing and removed database.db file 2020-11-06 02:16:04 -05:00
5c5b645c30 Added graphing capablities. It only graphs total fitness of generation. 2020-11-06 02:11:06 -05:00
e012f6653c Removed asserts 2020-11-05 17:46:41 -05:00
14c15de7bf Update test_EasyGA.py 2020-11-05 17:37:39 -05:00
7b2053d626 Added basic database functionallity 2020-11-05 15:38:54 -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
0c6d8060a6 Added default run to testing 2020-11-03 14:18:37 -05:00
bfd4971f13 Merge branch 'master' of https://github.com/danielwilczak101/EasyGA 2020-11-03 14:15:13 -05:00
9cbdc5030a Moved all images to the media branch. 2020-11-03 14:15:04 -05:00
e62aa224da Update README.md 2020-11-03 14:11:24 -05:00
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