ahmedfgad/GeneticAlgorithmPython
Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch). observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 91
- Release rhythm 55
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 182
- age_days: 2822
- days_rel: 89
- days_push: 55
- n_releases_24m: 4
Adoption not part of the score
2220 stars · 500 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PyGAD is an open-source Python 3 library for implementing the genetic algorithm to optimize single- and multi-objective problems. It can also train machine learning models, with built-in support for Keras and PyTorch neural networks.
Use cases
- solve optimization problems with a genetic algorithm in python
- train keras neural networks using a genetic algorithm
- optimize pytorch model weights with evolutionary search
- run multi-objective optimization in python
- find optimal parameters with a metaheuristic instead of gradient descent
- feature selection using genetic algorithms
When to choose
- you need a simple, well-documented genetic algorithm library in Python
- you want to train or fine-tune Keras/PyTorch models without gradients
- your objective function is non-differentiable or black-box
- you need both single- and multi-objective evolutionary optimization
When to avoid
- you need industrial-strength large-scale evolutionary computation with massive parallelism
- your problem is smooth and differentiable, where standard gradient-based optimizers are faster
- you need other metaheuristics like particle swarm or simulated annealing out of the box
Facets
library · maturity active
machine-learning deep-learning machine-learning artificial-intelligence deep-learning python genetic-algorithm evolutionary-algorithms optimization numpy keras pytorch metaheuristics multi-objective-optimization
1 source
- readme: https://github.com/ahmedfgad/GeneticAlgorithmPython · fetched 2026-08-28 · d1abe20af2dd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ahmedfgad/GeneticAlgorithmPython | main | 80 |
For agents
markdown · JSON · MCP: product_card(name="ahmedfgad/GeneticAlgorithmPython")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem