A ubiquitous or general purpuse GA
Project description
EasyGA - A general solution to Genetic Algorithms
The projects has just started
Installation
Run the rolling to install:
pip3 install EasyGA
To use the package
import EasyGA as ga
Usage
import EasyGA as ga
chromosome = ga.chromosome()
# Fill the chromosome with genes with Gene Number i'th number
for i in range(10):
gene_value = f"Gene Number {i}"
new_gene = ga.gene("gene_value")
chromosome.add_gene(new_gene)
# Chromosome has 10 genes in it
print(len(chromosome.genes))
# Get the first genes value
print(chromosome.genes[0].get_value())
Developing EasyGA
To install EASY, along with the tools you need to develop and run tests, run the following in your virtual env:
$ pip install -e .[dev]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
EasyGA-0.0.5.tar.gz
(1.9 kB
view hashes)
Built Distribution
EasyGA-0.0.5-py2-none-any.whl
(2.8 kB
view hashes)