All Projects → kiecodes → genetic-algorithms

kiecodes / genetic-algorithms

Licence: MIT license
This repository belongs to the youtube videos "What are Genetic Algorithms" (https://youtu.be/uQj5UNhCPuo) and "Genetic Algorithm from Scratch in Python" (https://youtu.be/nhT56blfRpE). If you haven't seen it, please consider watching part one of this series, to get a better understanding of this code.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to genetic-algorithms

Ascension
A metaheuristic optimization framework
Stars: ✭ 24 (-69.62%)
Mutual labels:  genetic-algorithm
BoxPacking
R package for solving three-dimensional bin packing problem
Stars: ✭ 56 (-29.11%)
Mutual labels:  genetic-algorithm
Flappy-Bird-Genetic-Algorithms
Use genetic algorithms to train flappy bird
Stars: ✭ 83 (+5.06%)
Mutual labels:  genetic-algorithm
ant sugar
Genetic Algorithms, Mutation, Crossover, Mating, Particle Animation, Gaming, Learning, P5JS, Fun Project
Stars: ✭ 33 (-58.23%)
Mutual labels:  genetic-algorithm
reactive-trader
In the coming weeks this plans to become a Gekko plugin that reacts to market changes, finding and running only the most profitable strategies.
Stars: ✭ 91 (+15.19%)
Mutual labels:  genetic-algorithm
NeuroEvolution-Flappy-Bird
A comparison between humans, neuroevolution and multilayer perceptrons playing Flapy Bird implemented in Python
Stars: ✭ 17 (-78.48%)
Mutual labels:  genetic-algorithm
multi objective optimization matlab
MATLAB Tool for Multi-Objective Optimization
Stars: ✭ 23 (-70.89%)
Mutual labels:  genetic-algorithm
pikaia
Modern Fortran Edition of the Pikaia Genetic Algorithm
Stars: ✭ 29 (-63.29%)
Mutual labels:  genetic-algorithm
geneal
A genetic algorithm implementation in python
Stars: ✭ 47 (-40.51%)
Mutual labels:  genetic-algorithm
zoofs
zoofs is a python library for performing feature selection using a variety of nature-inspired wrapper algorithms. The algorithms range from swarm-intelligence to physics-based to Evolutionary. It's easy to use , flexible and powerful tool to reduce your feature size.
Stars: ✭ 142 (+79.75%)
Mutual labels:  genetic-algorithm
tsp-genetic-python
A genetic algorithm to solve the Travelling Salesman Problem, implemented in Python. Made by Jack Frigaard, modified by Mauricio Aizaga
Stars: ✭ 73 (-7.59%)
Mutual labels:  genetic-algorithm
DeepHyperNEAT
A public python implementation of the DeepHyperNEAT system for evolving neural networks. Developed by Felix Sosa and Kenneth Stanley. See paper here: https://eplex.cs.ucf.edu/papers/sosa_ugrad_report18.pdf
Stars: ✭ 42 (-46.84%)
Mutual labels:  genetic-algorithm
GeneticAlgorithmUniversityClassScheduler
A class scheduler using adaptive-elitist genetic algorithm.
Stars: ✭ 98 (+24.05%)
Mutual labels:  genetic-algorithm
neuroevolution-robots
Neuroevolution demo through TensorFlow.js, Neataptic, and Box2D
Stars: ✭ 31 (-60.76%)
Mutual labels:  genetic-algorithm
modest-py
FMI-compliant Model Estimation in Python
Stars: ✭ 40 (-49.37%)
Mutual labels:  genetic-algorithm
freqgen
🎯 Generate DNA sequences with specified amino acid, codon, and k-mer frequencies
Stars: ✭ 16 (-79.75%)
Mutual labels:  genetic-algorithm
trsh
Project about minimizing costs in garbage collection in Montevideo, Uruguay, using Evolutionary Algorithms
Stars: ✭ 17 (-78.48%)
Mutual labels:  genetic-algorithm
TorchGA
Train PyTorch Models using the Genetic Algorithm with PyGAD
Stars: ✭ 47 (-40.51%)
Mutual labels:  genetic-algorithm
GA
An R package for optimization using genetic algorithms
Stars: ✭ 76 (-3.8%)
Mutual labels:  genetic-algorithm
Stock-Market-Prediction-using-Neural-Networks-and-Genetic-Algorithm
Matlab Module for Stock Market Prediction using Simple NN
Stars: ✭ 59 (-25.32%)
Mutual labels:  genetic-algorithm

Genetic Algorithms

Hello. Thank you for being here. This repository belongs to the youtube videos What are Genetic Algorithms and Genetic Algorithm from Scratch in Python. If you haven't seen it, please consider watching part one of this series, to get a better understanding of this code.

What are Genetic Algorithms

Content

This repository contains the codebase I used to do the comparison between the stupid brute-force attempt to solve the Knapsack problem and the implementation of the genetic algorithms.

The codebase is structured into three modules: algorithms, problems, and utils.

Inside of algorithms you find the implementation of the brute-force approach and the non-problem-specific parts of the implementation of the genetic algorithm.

problems contains all problem-specific parts related to the Knapsack problems, like the definition of Things and the problem specific fitness function for the genetic algorithm.

utils simply contains a utility function I wrote myself to measure time using a context manager. (https://book.pythontips.com/en/latest/context_managers.html)

genetic_algo.py uses the brute-force approach to find the best solution for a given Knapsack problem and tries to find the same solution using the genetic algorithm and compares the performance.

bruteforce_time.py and genetic_time.py compare the needed time a brute-force or genetic algorithm needs for a given number of items. (Be careful the brute-force approach gets slow very fast.)

Contribution

Corrections and additions to the documentation to help fellow learners are always welcome.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].