Commit Graph

353 Commits

Author SHA1 Message Date
594d0992f6 Added to git ignore. Will ignore the auto generated database file 2020-11-15 09:14:33 +00:00
7d8045692f changes 2020-11-15 08:59:15 +00:00
2cfb840198 Cleaned code and added functions to graph 2020-11-13 01:43:15 -05:00
efb69f88ea Updated plt usage 2020-11-12 21:16:17 -05: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
aa677a1d81 Rewrote for clarity and potential bug 2020-11-12 18:00:22 -05:00
ef5f87cbc6 Fixed bug 2020-11-12 17:59:55 -05:00
0c9c545125 Cleaned up code 2020-11-12 17:50:07 -05:00
ae5fed1d71 Fixed potential bug 2020-11-12 17:49:33 -05:00
45316286c0 Added Permutation class 2020-11-12 17:38:10 -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
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