cbgp-lite
Code Building Genetic Programming for a narrow subset of the Clojure language.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.5%) to scientific vocabulary
Repository
Code Building Genetic Programming for a narrow subset of the Clojure language.
Basic Info
- Host: GitHub
- Owner: erp12
- Language: Clojure
- Default Branch: master
- Size: 137 KB
Statistics
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 3
- Releases: 1
Metadata Files
README.md
Code Building GP - Lite
A genetic programming system for synthesizing programs that cover a narrow subset of the Clojure language.
Benchmarking
The benchmarks folder contains code to run cbgp-lite on a suite of standard benchmark problems. These can be
used as end-to-end tests, but are primarily meant to guide research into improvements of the code building GP method.
Benchmark runs can be started in a variety of ways, detailed below.
Clojure CLI
Simply invoke the run function in one of the benchmark method repos using -X and the :benchmarks alias.
The main namespaces depends on the search algorithm you want to use. For all namespaces the entrypoint is the run
funciton. Currently supported search algorithm namespaces are as follows:
erp12.cbgp-lite.benchmark.gaerp12.cbgp-lite.benchmark.simulated-annealingerp12.cbgp-lite.benchmark.hill-climbingerp12.cbgp-lite.benchmark.random-search
The :suite-ns argument denotes the namespace of the problem suite which will serve training and test cases via
a read-cases function. It must also have a problems function that will return a map of problem metadata
(types, literals, ERC generators, error functions) when given a map of options.
The remaining arguments should be whatever is required by both the run function of the main namespace
and the read-cases function of the :suite-ns.
clj -X:benchmarks erp12.cbgp-lite.benchmark.ga/run \
:suite-ns erp12.cbgp-lite.benchmark.suite.psb \
:data-dir '"data/psb"' \
:problem "vectors-summed"
This is the preferred approach for starting a single run.
The local_runner.py script
A python script for starting multiple runs, optionally with some number of runs happening in parallel.
Requires Python 3. See python3 scripts/local_runner.py --help for possible arguments.
This is the preferred approach to starting multiple runs and capturing a log file for each.
Docker
The scripts/build.sh script makes it easy to build Docker images that will perform a single run of
a specific PSB suite problem. It takes a two arguments:
- The search algorithm to use. Choices are
ga,simulated-annealing,hill-climbing,random-search. - The problem name.
The resulting image will be named fcbgp-[search]-[problem] where [search] and [problem] are the arguments
provided to the build script.
Running these images in a container will perform a single run.
Development
Running Tests
text
clj -X:test
Owner
- Name: Eddie Pantridge
- Login: erp12
- Kind: user
- Location: Boston MA
- Company: @swoop-inc
- Repositories: 54
- Profile: https://github.com/erp12
Artificial Intelligence researcher and Machine Learning Engineer.
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Pantrige
given-names: Edward
orcid: https://orcid.org/0000-0003-0535-5268
- family-names: Helmuth
given-names: Thomas
orcid: https://orcid.org/0000-0002-2330-6809
title: Solving Novel Program Synthesis Problems with Genetic Programming using Parametric Polymorphism
version: GECCO-2023
date-released: 2023-03-09
url: "https://github.com/erp12/cbgp-lite"
GitHub Events
Total
- Watch event: 2
- Fork event: 1
Last Year
- Watch event: 2
- Fork event: 1
Committers
Last synced: 12 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| erp12 | e****e@g****m | 48 |
| Tom Helmuth | t****h@h****u | 4 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 3
- Total pull requests: 30
- Average time to close issues: about 2 months
- Average time to close pull requests: 18 days
- Total issue authors: 1
- Total pull request authors: 3
- Average comments per issue: 0.67
- Average comments per pull request: 0.5
- Merged pull requests: 26
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- erp12 (3)
Pull Request Authors
- erp12 (24)
- thelmuth (5)
- anthonyhevia (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- DeLaGuardo/setup-clojure master composite
- actions/checkout v2 composite
- actions/setup-java v2 composite
- clojure tools-deps-1.11.1.1149 build