Skip to content

yasfatft/genetic-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Genetic Algorithm

What it can do?

The algorithm makes a random population at the beginning and then tries to approach a special string in every generation. Population size, number of generations, and goal string can be modified by you.

How to use

There are two ways to run algorithm:

With Python3

  1. Install dependencies: pip3 install -r requirements.txt
  2. Declare population size, number of generation & goal string in genetic.py
  3. Run genetic.py

With Jupiter Notebook

You only need to open the Genetic.ipnyb with Jupiter notebook, modify population size, number of generation & goal string, and run cells in order one by one.

About

A simple genetic algorithm implemented in Python3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published