613 Commits

Author SHA1 Message Date
Ryan Boldi
49d1287335 New param, ds-parent-rate, that changes how many parents become the representative population. At 1, this is just full information. 2022-04-27 13:22:57 -04:00
Ryan Boldi
816b443658 retested max-min, and added some new logging to judge case proportions 2022-04-13 22:54:33 -04:00
Ryan Boldi
e3dfcfd58e Create simple_classification.cljc 2022-04-09 15:42:43 -04:00
Ryan Boldi
cebdd1aa20 Update complex_regression.cljc 2022-04-05 15:34:38 -04:00
Ryan Boldi
4f9ed1f267 Update complex_regression.cljc 2022-04-05 15:21:55 -04:00
Ryan Boldi
11b09c9be0 Update complex_regression.cljc 2022-04-03 23:08:49 -04:00
Ryan Boldi
336710144d Create complex_regression.cljc 2022-04-02 14:49:27 -04:00
Ryan Boldi
217f195047 Implemented max-min, which takes the maximum minimum distance into account instead of average distances 2022-03-29 15:32:34 -04:00
Ryan Boldi
bff8f0673c evals the whole population to be used for distance calculations 2022-03-28 22:08:22 -04:00
Lee Spector
acfb03f39b Bump version 2022-03-28 12:32:15 -04:00
Lee Spector
a1252c5c0a Update session.cljc to specify training/testing data among other things 2022-03-28 12:29:04 -04:00
Ryan Boldi
b33ac7c0a4 evaluate all distances every k generations 2022-03-16 11:07:08 -04:00
Ryan Boldi
9b81e345df Update downsample.md 2022-03-14 19:04:37 -04:00
Ryan Boldi
43fde4c7ad Implements first case subsampling function. 2022-03-14 19:04:32 -04:00
Ryan Boldi
22b7067f10 add and test helper functions 2022-03-14 19:02:47 -04:00
Ryan Boldi
f763db91a2 only do distance calculations if parent-selection is ds-lexicase 2022-03-12 14:05:55 -05:00
Ryan Boldi
287799f194 implemented downsampling and distance measuring/updating
Features:

- Tests!
- maintain index of all training-cases
- update distance of training-cases after every evaluation (only update cases that are in the downsample)
- when an individual passes all of the DS cases, the population is re-evaluated on all training-cases to see if they pass all of them. If so, evolution is completed and training is complete. (they are then tested on held out test set and performance is reported)
2022-03-12 13:59:47 -05:00
Ryan Boldi
83c7e440f6 added step function to math utils 2022-03-12 13:55:47 -05:00
Ryan Boldi
72e31b5c4d made defaults use UMAD 100% of the time 2022-03-12 13:55:31 -05:00
Ryan Boldi
d1044f1ab4 Update simplification.cljc 2022-03-07 14:04:58 -05:00
Ryan Boldi
32f374635a Update utils_test.cljc 2022-03-06 23:33:50 -05:00
Ryan Boldi
4a03a19190 Merge branch 'master' of https://www.github.com/lspector/propeller into downsample 2022-03-06 23:27:00 -05:00
Ryan Boldi
527f115168 downsample takes training-data as arg 2022-03-06 23:24:13 -05:00
Lee Spector
0412f4015b
Merge pull request #46 from NicMcPhee/fix-from-string-instruction
Fix from string instruction and several PSB2 problems
2022-03-04 19:34:18 -05:00
Lee Spector
10f1b90ea0
Merge pull request #45 from ryanboldi/simplification
Simplification Update - Docs & more readable code
2022-03-04 19:32:14 -05:00
Ryan Boldi
64a81cb450 update documentation to include simplification 2022-03-03 22:56:37 -05:00
Ryan Boldi
a7b625d942 removed simplification complexity from gp.cljc and added it to simplification.cljc.
also updated tests to reflect this
2022-03-03 22:56:10 -05:00
Ryan Boldi
45b19fbd3e implement assign-indices-to-data and select-downsample-random and tests 2022-03-03 21:43:44 -05:00
Ryan Boldi
8c074a4ba8 update documentation to include simplification 2022-03-03 21:29:42 -05:00
RichardLussier
c6f08d4ca3 Fix other read-string uses in PSB2 problems
Since removing 'read-string' and 'str' from middle-character and twitter seemed to help diversify the outputs, we chose to replace all other occurrences of this pattern from the other PSB2 problems. Additionally, this conversion with 'read-string' and 'str' was completely unnecessary since the program was already taking from the top of the string stack.
2022-03-03 14:44:09 -06:00
Lee Spector
e47db0f5f6
Merge pull request #44 from ryanboldi/fixed-data-representations
Made all training data representations consistent with PSB2
2022-03-02 10:07:43 -05:00
Ryan Boldi
74d4f95b04 made all training data representations consistent with PSB2 2022-03-01 23:25:15 -05:00
Lee Spector
4849757c56
Merge pull request #43 from ryanboldi/simplification
fixed wrong number of args to simplification code
2022-03-01 18:26:01 -05:00
Ryan Boldi
793ff2880d fixed wrong number of args to simplification code 2022-03-01 17:14:40 -05:00
Lee Spector
6ee30d86ba
Merge pull request #42 from ryanboldi/simplification
Autosimplification and Tests
2022-02-26 21:32:08 -05:00
Ryan Boldi
be3402dae2 Revert "autosimplification implementation complete"
This reverts commit af22f9793b70339b9c90cfa2b99c327426840471.
2022-02-26 21:14:16 -05:00
Ryan Boldi
f1838b6b32 autosimplification implementation complete 2022-02-26 21:11:38 -05:00
Ryan Boldi
af22f9793b autosimplification implementation complete 2022-02-26 21:08:04 -05:00
Ryan Boldi
f369d23ad5 simplified simplification.cljc 2022-02-26 21:07:33 -05:00
Ryan Boldi
e25dab4798 Implements auto-simplification using k-annealing & tests
Select k random elements in plushy. Delete these, and see if the plushy's behaviors are still identical. If they are, this is now the current plushy. If not, decrease k with a certain prob, and try again.
2022-02-26 21:07:32 -05:00
Ryan Boldi
a215c1c271 added more communicative autosimplification tests 2022-02-26 21:04:29 -05:00
Nic McPhee
404e640cfb Further improve Middle Character and Twitter
Upon further inspection, Richard and I realized that we didn't need to have `parsed-outputs` at all in problems that just return a string (take the top value from the `:string` stack).

So we removed all that from the Middle Character and Twitter problems, and removed the unnecessary calls to `str` in the `levenshtein-distance` calls.

Co-authored-by: RichardLussier <lussi036@morris.umn.edu>
2022-02-25 16:49:45 -06:00
Nic McPhee
cb33af755a Remove unnecessary use of read-string in Middle Character
For some reason `read-string` was being called to parse a string to a string in Middle Character, along with a totally unnecessary try/catch block.

This cleans that up.

It looks like most if not all of the PSB2 problems have this issue and we'll need to go through and update all of those to not use `read-string`.
2022-02-25 16:29:32 -06:00
Nic McPhee
6b454451d7 Fix the _from_string instruction
This replaces the dangerous use of `read-string`with `parseInt` and `parseFloat`, and returns `ignore-instruction` if an exception is thrown when trying to do the parsing.

Hopefully this will fix the stack overflow problems with the PSB2 Middle Character and Twitter problems.
2022-02-11 17:27:33 -06:00
Lee Spector
d3ec89ae68
Merge pull request #40 from julia-schor/master
Updated Testing
2022-02-01 09:04:52 -05:00
Julia Schor
4a69b632b6 numeric.spec updates 2022-01-29 12:42:17 -05:00
Julia Schor
b3e0cf7b22 numeric.spec mostly working 2022-01-26 11:19:18 -05:00
Lee Spector
7681f54013
Merge pull request #39 from julia-schor/master
Added tests
2022-01-15 10:35:42 -10:00
Julia Schor
a8a2532b4b Added more tests 2022-01-14 20:48:22 -05:00
Julia Schor
38aa695bad added str and some boolean tests 2022-01-14 13:40:31 -05:00