Skip to main content

Tests PyPI version azure Conda Version Conda Platforms

EvoDAG

Evolving Directed Acyclic Graph (EvoDAG) is a steady-state Genetic Programming system with tournament selection (for classification, the default parameters choose the arguments of the sum and of the classifiers by agreement and the individual that leaves at random; see the documentation). The main characteristic of EvoDAG is that the genetic operation is performed at the root. EvoDAG was inspired by the geometric semantic crossover proposed by Alberto Moraglio et al. and the implementation performed by Leonardo Vanneschi et al.

EvoDAG is described in two papers. The preferred reference is Selection Heuristics on Semantic Genetic Programming for Classification Problems, Claudia N. Sánchez and Mario Graff, Evolutionary Computation 30(2):253–289, 2022; the library is presented in EvoDAG: A semantic Genetic Programming Python library, Mario Graff, Eric S. Tellez, Sabino Miranda-Jiménez, Hugo Jair Escalante, 2016 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), pp 1-6.

Documentation: the user guide is at https://mgraffg.github.io/EvoDAG/: installation, using EvoDAG from Python and from the command line, how the method works, the parameters, the performance results and how to cite it.

Quick Start

There are two options to use EvoDAG, one is as a library and the other is using the command line interface.

Using EvoDAG as library

EvoDAG offers scikit-learn estimators, which need the optional dependency scikit-learn:

pip install 'EvoDAG[sklearn]'

Let us assume that X contains the inputs and y contains the classes. Then in order to train an ensemble of 30 EvoDAG and predict X one uses the following instructions:

# Importing the EvoDAG ensemble (scikit-learn interface)
from EvoDAG import EnsembleClassifier, EvoDAGClassifier
# Importing iris dataset from sklearn
from sklearn.datasets import load_iris

# Reading data
data = load_iris()
X = data.data
y = data.target

# train the model: 30 EvoDAG models, seeds 0 to 29
m = EnsembleClassifier(EvoDAGClassifier(), n_estimators=30, n_jobs=4).fit(X, y)

# predict X using the model
hy = m.predict(X)

EvoDAGClassifier alone is one model, and EvoDAGRegressor and EnsembleRegressor are their counterparts for regression. EvoDAG's own classes (EvoDAGE, the search engine EvoDAG.EvoDAG, Model and Ensemble) keep working and do not need scikit-learn; they are described in the Native API page.

Using EvoDAG from the command line

Let us assume one wants to create a classifier of iris dataset. The first step is to download the dataset from the UCI Machine Learning Repository

curl -O https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data

Training EvoDAG

Let us assume, you do not want to optimise the EvoDAG parameters, so the default parameters are used when flag -P is not present, i.e.,

EvoDAG-train -C -m model.evodag -n 100 -u 4 iris.data 

-C flag indicates that it is a classification problem, and -R is for regression problems; there are different default parameters for each type of problems.

The performance of EvoDAG without optimising the parameters is presented in the Performance page of the documentation.

Predict

Once the model is obtained, it is time to use it; given that iris.data was not split into a training and test set, let us assume that iris.data contains some unknown data. In order to predict iris.data one would do:

EvoDAG-predict -m model.evodag -o iris.predicted iris.data

where -o indicates the file name used to store the predictions, -m contains the model, and iris.data is the test set.

Performance

The benchmark results (EvoDAG against the classifiers of scikit-learn, PSMS, auto-sklearn and an SVM) are in the Performance page of the documentation.

Development

The development guide is CLAUDE.md (architecture, commands, rules and conventions), and the developer reference, with every module documented, is at https://mgraffg.github.io/EvoDAG/dev/.

Citing EvoDAG

If EvoDAG is used in a scientific publication, I would appreciate a citation to the first paper below (the preferred one); the conference paper and the book chapter describe the library and the earlier system. The same information is in CITATION.cff and on the Citing page.

Selection Heuristics on Semantic Genetic Programming for Classification Problems Claudia N. Sánchez, Mario Graff. Evolutionary Computation 30(2):253–289, 2022.

@article{sanchez_selection_2022,
	title = {Selection {Heuristics} on {Semantic} {Genetic} {Programming} for {Classification} {Problems}},
	author = {S{\'a}nchez, Claudia N. and Graff, Mario},
	journal = {Evolutionary Computation},
	volume = {30},
	number = {2},
	pages = {253--289},
	year = {2022},
	doi = {10.1162/evco_a_00297}
}

EvoDAG: A semantic Genetic Programming Python library Mario Graff, Eric S. Tellez, Sabino Miranda-Jiménez, Hugo Jair Escalante. 2016 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC) pp 1-6.

@inproceedings{graff_evodag:_2016,
	title = {{EvoDAG}: {A} semantic {Genetic} {Programming} {Python} library},
	shorttitle = {{EvoDAG}},
	doi = {10.1109/ROPEC.2016.7830633},
	abstract = {Genetic Programming (GP) is an evolutionary algorithm that has received a lot of attention lately due to its success in solving hard real-world problems. Lately, there has been considerable interest in GP's community to develop semantic genetic operators, i.e., operators that work on the phenotype. In this contribution, we describe EvoDAG (Evolving Directed Acyclic Graph) which is a Python library that implements a steady-state semantic Genetic Programming with tournament selection using an extension of our previous crossover operators based on orthogonal projections in the phenotype space. To show the effectiveness of EvoDAG, it is compared against state-of-the-art classifiers on different benchmark problems, experimental results indicate that EvoDAG is very competitive.},
	booktitle = {2016 {IEEE} {International} {Autumn} {Meeting} on {Power}, {Electronics} and {Computing} ({ROPEC})},
	author = {Graff, M. and Tellez, E. S. and Miranda-Jiménez, S. and Escalante, H. J.},
	month = nov,
	year = {2016},
	keywords = {directed graphs, Electronic mail, EvoDAG, evolving directed acyclic graph, Genetic algorithms, GP community, Libraries, semantic genetic operators, semantic genetic programming Python library, Semantics, Sociology, Statistics, Steady-state, steady-state semantic genetic programming, Training},
	pages = {1--6}
}

Semantic Genetic Programming for Sentiment Analysis Mario Graff, Eric S. Tellez, Hugo Jair Escalante, Sabino Miranda-Jiménez. NEO 2015 Volume 663 of the series Studies in Computational Intelligence pp 43-65.

@incollection{graff_semantic_2017,
	series = {Studies in {Computational} {Intelligence}},
	title = {Semantic {Genetic} {Programming} for {Sentiment} {Analysis}},
	copyright = {©2017 Springer International Publishing Switzerland},
	isbn = {9783319440026 9783319440033},
	url = {https://doi.org/10.1007/978-3-319-44003-3_2},
	abstract = {Sentiment analysis is one of the most important tasks in text mining. This field has a high impact for government and private companies to support major decision-making policies. Even though Genetic Programming (GP) has been widely used to solve real world problems, GP is seldom used to tackle this trendy problem. This contribution starts rectifying this research gap by proposing a novel GP system, namely, Root Genetic Programming, and extending our previous genetic operators based on projections on the phenotype space. The results show that these systems are able to tackle this problem being competitive with other state-of-the-art classifiers, and, also, give insight to approach large scale problems represented on high dimensional spaces.},
	language = {en},
	number = {663},
	urldate = {2016-09-20},
	booktitle = {{NEO} 2015},
	publisher = {Springer International Publishing},
	author = {Graff, Mario and Tellez, Eric S. and Escalante, Hugo Jair and Miranda-Jiménez, Sabino},
	editor = {Schütze, Oliver and Trujillo, Leonardo and Legrand, Pierrick and Maldonado, Yazmin},
	year = {2017},
	note = {DOI: 10.1007/978-3-319-44003-3\_2},
	keywords = {Artificial Intelligence (incl. Robotics), Big Data/Analytics, Computational intelligence, Computer Imaging, Vision, Pattern Recognition and Graphics, Genetic programming, optimization, Semantic Crossover, sentiment analysis, Text mining},
	pages = {43--65}
}

Where to find the rest

  • Command line: the four console commands with every option and the data formats, including the random search on the parameter space (EvoDAG-params).
  • Parameters: what each parameter does, its default, and the space that the random search explores.
  • How it works and Selection: the method and the selection heuristics.

Install EvoDAG

  • Installing evodag from the conda-forge channel can be achieved by adding conda-forge to your channels with:
conda config --add channels conda-forge
conda config --set channel_priority strict   
conda install evodag

or with mamba:

mamba install evodag
  • Install using pip
pip install EvoDAG

The page Install lists the requirements and how to build the package from its source code.

Metadata

Release files for EvoDAG 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EvoDAG 0.18.0
File Size Uploaded Provenance Actions
evodag-0.18.0.tar.gz 621.8 kB Without provenance Details for evodag-0.18.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for EvoDAG 0.18.0
File Actions
evodag-0.18.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for evodag-0.18.0-cp313-cp313-win_amd64.whl
evodag-0.18.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for evodag-0.18.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
evodag-0.18.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for evodag-0.18.0-cp313-cp313-macosx_11_0_arm64.whl
evodag-0.18.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for evodag-0.18.0-cp312-cp312-win_amd64.whl
evodag-0.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for evodag-0.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
evodag-0.18.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for evodag-0.18.0-cp312-cp312-macosx_11_0_arm64.whl
evodag-0.18.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for evodag-0.18.0-cp311-cp311-win_amd64.whl
evodag-0.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for evodag-0.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
evodag-0.18.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for evodag-0.18.0-cp311-cp311-macosx_11_0_arm64.whl
evodag-0.18.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for evodag-0.18.0-cp310-cp310-win_amd64.whl
evodag-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for evodag-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
evodag-0.18.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for evodag-0.18.0-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 13.7 MB

Release files / evodag-0.18.0.tar.gz

Download URL evodag-0.18.0.tar.gz
Size 621.8 kB
Tags Source
SHA-256 checksum
How to use checksums
495d61e8a03ded4ce3dedd09952e9e1709a88f6e42596defe9a6b34aba7a57cd
BLAKE2b-256 checksum
How to use checksums
bb0e386490eb92979ad23fc74637d988503f3577893eb6887a9973c63b16d838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp313-cp313-win_amd64.whl

Download URL evodag-0.18.0-cp313-cp313-win_amd64.whl
Size 387.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
844f3ea54569282dcfd96d9c37723f66f054b40a1c185f29539fbd9d68b2208a
BLAKE2b-256 checksum
How to use checksums
a22cb52bf96363e9d4e878e27bf5ddd66241e95cc196611e1d9d0a6da90a240e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl

Download URL evodag-0.18.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f882db16b7c425a0cedf078344e497c903c8d4ec011114728a788582d7d450b8
BLAKE2b-256 checksum
How to use checksums
23bcc16d3367638435107e7836bfb5ba07024b2dc34f39683fbe8db55bda0146
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL evodag-0.18.0-cp313-cp313-macosx_11_0_arm64.whl
Size 449.1 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
aec2745c74ccaf980e245f305b0ab8636b3407f1194961f39d2575b0c1ec2ee8
BLAKE2b-256 checksum
How to use checksums
4b85f04324a7fd83d7fed5b95a94f8303a493d206f6c753fabb864d87be3c71b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp312-cp312-win_amd64.whl

Download URL evodag-0.18.0-cp312-cp312-win_amd64.whl
Size 388.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
909b316a796ef902748b6fa0f5401840e338ad931d20bdec084d37a3a4e408ee
BLAKE2b-256 checksum
How to use checksums
6bfd58a7dd40e714a444b82d21b35ca04563cffcae79e3af7d1bfb6009070596
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl

Download URL evodag-0.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Size 2.5 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1d144104a2e9138b6d65e39dd0d4c911de49089621299156df24c2fae38ed9e6
BLAKE2b-256 checksum
How to use checksums
ed006ddf4a2b3453c49bbb1fe191ff349e7869ed088a8fe4e2fa01ab3c124d08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL evodag-0.18.0-cp312-cp312-macosx_11_0_arm64.whl
Size 449.1 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1042e8c4a6a764deccdb4e8b7b893d216aa43b4286e6bed9d9e36f46ad8b81a2
BLAKE2b-256 checksum
How to use checksums
09b814cf817412cf27e6c66322584ce0c7d74cf15d533bad9baf8ebfd94273cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp311-cp311-win_amd64.whl

Download URL evodag-0.18.0-cp311-cp311-win_amd64.whl
Size 390.3 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
fa253ad01d452be67346b8209a98805c2f0a24a0a32dfe362deeaac3d36acd8f
BLAKE2b-256 checksum
How to use checksums
f7e655b6f06b18b8e44922e4375faa8b8f63dbe2a2de8873b0a7116684f6b6eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl

Download URL evodag-0.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
3e4688d713d7d64cbca5f020a9e77c5c5a096e25d74c1e4572e605e14098b326
BLAKE2b-256 checksum
How to use checksums
7aea0eb5b1a969e4b8416b9b05a93b8af8b6feb4e9107a09cf2311d9999a4dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL evodag-0.18.0-cp311-cp311-macosx_11_0_arm64.whl
Size 445.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
84ac1f7e38aabaef28a02d094d4cda97b28734c75a39b71085c7e9c4df1f7d3b
BLAKE2b-256 checksum
How to use checksums
bd61287cc90084619cb9d7d4e73a4a4451eb1435e8c585cc530254b457d6abe9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp310-cp310-win_amd64.whl

Download URL evodag-0.18.0-cp310-cp310-win_amd64.whl
Size 391.7 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
89635ca7a004dda04a91765e483349585031107f62dca8732a8108c970fc009d
BLAKE2b-256 checksum
How to use checksums
ef41f86e1361b4b2b1f3052ec55b3bb28d1a92b38cd419704db9caf88f48c8ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl

Download URL evodag-0.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Size 2.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e07780fcc76c1f884a1c410e9b496cfa351c0fc8a52a15f1f4e54946bf4cd6e4
BLAKE2b-256 checksum
How to use checksums
aee1264476fecb6f6388ec62ce3472161149ba464affa4bd361d1b4cedf32646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / evodag-0.18.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL evodag-0.18.0-cp310-cp310-macosx_11_0_arm64.whl
Size 447.8 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
09b86fb517626935d622b2e1b2fe7188c4c2f30ca0dc4871dfd48d85418cab19
BLAKE2b-256 checksum
How to use checksums
be10081392a68584d762c1b5144e153af6ac1abe1ed7db6eb1abed4691b6e8c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for EvoDAG 0.18.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.18.0 This release

13 release files No provenance

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page