Grammatical Evolution framework built with DEAP
Project description
GRAPE: Grammatical Algorithms in Python for Evolution
GRAPE is an implementation of Grammatical Evolution (GE) in DEAP, an Evolutionary Computation framework in Python,
Usage
import grape
from grape import algorithms
BNF_GRAMMAR = grape.Grammar("heartDisease.bnf")
population, logbook = algorithms.ge_eaSimpleWithElitism(
population,
toolbox,
cxpb=P_CROSSOVER,
mutpb=P_MUTATION,
ngen=N_GEN,
elite_size=ELITE_SIZE,
bnf_grammar=BNF_GRAMMAR,
codon_size=CODON_SIZE,
max_tree_depth=MAX_TREE_DEPTH,
codon_consumption=CODON_CONSUMPTION,
report_items=REPORT_ITEMS,
genome_representation=GENOME_REPRESENTATION,
stats=stats,
halloffame=hof,
verbose=False
)
How to cite:
Allan de Lima, Samuel Carvalho, Douglas Mota Dias, Enrique Naredo, Joseph P.
Sullivan, and Conor Ryan. 2022. GRAPE: Grammatical Algorithms in Python for
Evolution. Signals 3, 3 (2022), 642–663. https://doi.org/10.3390/signals3030039
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
grape_bds-0.1.3.tar.gz
(18.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
grape_bds-0.1.3-py3-none-any.whl
(25.2 kB
view details)
File details
Details for the file grape_bds-0.1.3.tar.gz.
File metadata
- Download URL: grape_bds-0.1.3.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6880a16c34b5c19f6d0c06ed475659f59dc9b138321c3301954b858735d422dc
|
|
| MD5 |
bba18a04ac527a97111b7d7e9fabc797
|
|
| BLAKE2b-256 |
e8fefcd7c7cd807fb3349b7e9f2b9ec3c26017490101f7737e8ccc38b194f2d4
|
File details
Details for the file grape_bds-0.1.3-py3-none-any.whl.
File metadata
- Download URL: grape_bds-0.1.3-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f14d57f75c5b0a35a2b29a97d565c3853f077f5459c817f02f45cec2048cbc4
|
|
| MD5 |
211dc3fbac8fbc7bb1bc4ea353e46c2f
|
|
| BLAKE2b-256 |
f5337744de75692aaf542aac169d44c40dc800a2d59adb10d7a0fbb796c9855f
|