Archive for May, 2011

Size limits on zippers in Clojush

Thursday, May 26th, 2011

A small but important bug fix if you’re using zippers in Clojush.

Available as usual from: https://github.com/lspector/Clojush

20110526: - Enforce size limits on zipper manipulation results.

Keijzer-style error scaling in Clojush

Tuesday, May 17th, 2011

Added Clojush support for Keijzer-style error scaling (developed for symbolic regression applications, but maybe it’ll be useful elsewhere). Details below and in the source files.

Available as usual from: https://github.com/lspector/Clojush

20110517: - Added a "scaled-errors" function to support error-scaling as 
            described by Maarten Keijzer in Scaled Symbolic Regression, in
            Genetic Programming and Evolvable Machines 5(3), pp. 259-269, 
            September 2004. This must be used in a problem's error function,
            and then the outputs of the evolved program must be "unscaled."
            See the documentation string for scaled-errors and also
            examples/scaled_sextic.clj for details.
          - Added examples/scaled_sextic.clj to demonstrate the use of
            scaled-errors.
          - Changed examples/sextic.clj to use squared errors and an error
            threshold, in order to facilitate comparisons between the
            versions that do and don't use error scaling.
          - Made minor changes to the korns_regression_p12 example.

Complex numbers in Clojush (by Brian Martin)

Sunday, May 8th, 2011

Brian Martin has added support for complex numbers in Clojush; details below. Anyone feel like contributing an example file that uses this?

Available as usual from: https://github.com/lspector/Clojush

20110505: - Added complex number support.  New instructions for the 'complex' 
            stack include: pop, dup, swap, rot, flush, eq, stackdepth, yank, 
            yankdup, shove, rand, add, sub, mult, divide, fromfloat, 
            frominteger, fromfloats, fromintegers, conjugate, magnitude, 
            and principal_sqrt. (Brian Martin)