Abstract
Recent studies show that program synthesis with GE produces code that has different structure compared to human-generated code, e.g., loops and conditions are hardly used. In this article, we extract knowledge from human-generated code to guide evolutionary search. We use a large code-corpus that was mined from the open software repository service GitHub and measure software metrics and properties describing the code-base. We use this knowledge to guide the search by incorporating a new selection scheme. Our new selection scheme favors programs that are structurally similar to the programs in the GitHub code-base. We find noticeable evidence that software metrics can help in guiding evolutionary search.
Author supplied keywords
Cite
CITATION STYLE
Schweim, D., Hemberg, E., Sobania, D., O’Reilly, U. M., & Rothlauf, F. (2021). Using knowledge of human-generated code to bias the search in program synthesis with grammatical evolution. In GECCO 2021 Companion - Proceedings of the 2021 Genetic and Evolutionary Computation Conference Companion (pp. 331–332). Association for Computing Machinery, Inc. https://doi.org/10.1145/3449726.3459548
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.