Similar to neural network usage, a dataset with inputs and output pre-classified, and this generates not a model but a perl code that satisfies the outputs for the given inputs.
https://github.com/sha0coder/zerglin
** Generation 70 population size 100 error 9 9 E0,B3,D4-E4,B1,E3,A0,E5-E5,B5,E4-E2,B0,E8,A6,E1-E1,B0,E9,A5,E1-E4,B6 +,E3 $a*=4;$e+=$d+$f;$f**=$e;$c=$i**$b;$b=$j^$b;$e%=$d; ** Generation 71 population size 100 error 9 9 E0,B3,D4-E4,B1,E3,A0,E5-E5,B6,E4-E2,B0,E1,A6,E0-E4,B0,E9,A5,E1-E9,B6 +,E8 $a*=4;$e+=$d+$f;$f%=$e;$c=$b**$a;$e=$j^$b;$j%=$i; ** Generation 72 population size 100 error 4 4 E0,B1,E0,A2,E1 $a+=$a*$b; ** Generation 73 population size 100 error 4 4 E0,B1,E0,A2,E1 $a+=$a*$b; ** Generation 74 population size 100 error 4 4 E0,B1,E0,A2,E1 $a+=$a*$b; ** Generation 75 population size 100 error 4 4 E0,B1,E0,A2,E1 $a+=$a*$b; ** Generation 76 population size 100 error 0 0 E0,B0,E0,A2,E1 $a=$a*$b; Optimized result: E0,B0,E0,A2,E1 $a=$a*$b;
just for fun, there are many things to improve. regards.

In reply to genetic algorith that evolves perl code util satisfying a dataset of inputs and outputs by sha0coder

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.