laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The only problem with the Genetic Algorithm approach is the scoring function. There are two possible types of bad answers.
1. RE does not match at all 2. RE matches too much (ie /^.*$/) You need a function to tell you if answer a was closer than b even though they were type 1 answers or a matches a small number of sets than b even though they were type 2 answers. It seems that you would have to have access to the actual RE code in perl to write such a function. ---- I always wanted to be somebody... I guess I should have been more specific. In reply to Re: (FoxUni) Re: generating regexes?
by atlantageek
|
|