Skip to main content

Evolving Directed Acyclic Graph

Project description

Build Status

PyPI version

Coverage Status

EvoDAG

Evolving Directed Acyclic Graph (EvoDAG) is a steady-state Genetic Programming system with tournament selection. 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.

Example using 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

In order to train the EvoDAG using a population of 10 individuals, using early stopping to 11, sampling 100 different parameter configurations, creating an ensemble of 12, and using 4 cores then the following command is used:

~/.local/bin/EvoDAG -e 10 -p 11 -r 100 -u 4 -n 12 iris.data

The EvoDAG ensemble is stored in iris.evodag.gz.

Now that the ensemble has been initialized one can predict a test set and store the output in file called output.csv using the following command.

~/.local/bin/EvoDAG -m iris.evodag.gz -t iris.data -o output.csv

Install EvoDAG

  • Install using pip pip install EvoDAG

Using the source code

  • Clone the repository git clone https://github.com/mgraffg/EvoDAG.git

  • Install the package as usual python setup.py install

  • To install only for the use then python setup.py install --user

Project details


Release history Release notifications | RSS feed

This version

0.2.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EvoDAG-0.2.2.tar.gz (29.7 kB view details)

Uploaded Source

File details

Details for the file EvoDAG-0.2.2.tar.gz.

File metadata

  • Download URL: EvoDAG-0.2.2.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for EvoDAG-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c6e5312b7868f11a3962b00e4542d2e4ca623604fa9a160f4104c633aaec295a
MD5 6e58d2ee9979f433ab580cb848083ce8
BLAKE2b-256 69005e6cd81fead78065e5d4bf9463862a95529f1beb6c2a9823a8d6bea63733

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page