Commit Graph

633 Commits

Author SHA1 Message Date
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
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