radiate

Library Listed

A Rust library for genetic algorithms and artificial evolution.

Checked · Sources

Downloads
971
Dependents
0
Stars
257
Forks
20
Contributors
5
Commits
2,963
Latest release
1.3.2 ·

About

From the project README ·

Radiate Logo


For more details check radiate.rs or cargo docs.

Radiate is a powerful library for implementing genetic algorithms and artificial evolution techniques. It provides a fast and flexible framework for creating, evolving, and optimizing solutions to complex problems using principles inspired by natural selection and genetics. The core is written in Rust and is available for Python.

  • Traditional genetic algorithm implementation.
  • Single & Multi-objective optimization support.
  • Neuroevolution (graph-based representation - evolving neural networks) support. Opt-in NEAT implementation.
  • Genetic programming support (tree-based representation)
  • Built-in support for parallelism.
  • Extensive selection, crossover, and mutation operators.
  • Opt-in speciation for maintaining diversity.
  • Novelty search support.
  • First-class metric tracking.
  • Dynamic Expression DSL for dynamic rates & custom metrics

Radiate can evolve anything from a 15-character string match to an LSTM-topology search. The same Pipeline that evolves Vec<char> to spell "Hello, Radiate!" evolves NEAT-style neural network graphs and symbolic-regression trees.

Checkout the change log for recent updates.


Installation

Rust

Add this to your Cargo.toml:

Read the full README
[dependencies]
radiate = { version = "1.3.2", features = ["x"] }
Python
pip install radiate # --or-- uv add radiate

Examples

Lets see a simple 'Hello World' example of using radiate to evolve a simple string - Hello, Radiate!. See the examples directory for a much more comprehensive set of examples in both languages.

import radiate as rd

target = "Hello, Radiate!"

engine = (
    rd.Engine.char(len(target))
    .fitness(
        lambda member: sum(1 for i in range(len(target)) if member[i] == target[i])
    )
    .limit(rd.Limit.score(len(target)))
)

result = engine.run(log=True)

print("Best solution:", "".join(result.value()))

Or in rust:

use radiate::prelude::*;

let target = "Hello, Radiate!";

let engine = GeneticEngine::builder()
    .codec(CharCodec::vector(target.len()))
    .fitness_fn(|geno: Vec<char>| {
        geno.into_iter()
            .zip(target.chars())
            .filter(|(allele, targ)| allele == targ)
            .count()
    })
    .build();

engine
    .iter()
    .logging()
    .until_score(target.len())
    .last()
    .unwrap();

Building & running from source

git clone https://github.com/pkalivas/radiate.git
cd radiate
just release 3.13

Radiate uses Just as a build tool, you can install it from here. The core build options are below, there are a few others that can be found through the just help command.

  • just develop faster build time for development with debug symbols and minimal optimizations.
  • just release slower build time for optimized runtime performance.

Both the above have an optional argument py to build the python package for a specific python version (e.g. just develop 3.12, just develop 3.13t for free-threading interpreter).

  • just test-rs to run tests for rust
  • just test-py to run tests for python package
  • just test to run tests for both.
  • just clean to nuke the build artifacts

Run examples with just example to run a small python script which shows & runs selected examples.

Contributing

Contributions are welcome. Pull requests should target the develop branch. If you use AI tools, disclose it in your PR or issue. See the AI usage policy.

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
None found
  • No native code found
Python bindings
Has Python bindings
  • radiate-error needs Python only with feature python
License
MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

radiate beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
radiate This page Listed

A Rust library for genetic algorithms and artificial evolution.

Python bindings

971 downloads over 30 days 0 257 1.3.2 GPU support unknown No native code found MIT
liblinear-rs Listed Dormant

Rust bindings for the liblinear C++ library

922 downloads over 30 days 1 10 1.0.0 GPU support unknown Binds native code: liblinear.a. Build uses a native toolchain: cc MIT
genevo Listed Dormant

genevo provides building blocks to run simulations of optimization and search problems using genetic algorithms (GA). Execute genetic algorithm (GA) simulations in a customizable and extensible way.

372 downloads over 30 days 1 185 0.7.1 GPU support unknown No native code found Apache-2.0 OR MIT
oxigen Listed Dormant

Fast, parallel, extensible and adaptable genetic algorithm library.

89 downloads over 30 days 0 183 2.2.2 GPU support unknown No native code found MPL-2.0
treeboost Listed

Gradient-boosted decision trees for tabular data: trains a baseline model in one call, with full control over boosting modes and configs, and Scalar, AVX-512, SVE2, WGPU and CUDA backends.

Python bindings

18 downloads over 30 days 0 9 0.1.2 CUDA, WebGPU No native code found Apache-2.0
revonet Listed Dormant

Rust implementation of real-coded genetic algorithm for solving optimization problems and training of neural networks. The latter is also known as neuroevolution.

9 downloads over 30 days 0 20 0.2.1 GPU support unknown No native code found GPL-3.0
propagon App Listed

Fast, large scale library for computing rankings and features based on various pairwise and graph algorithms

Not measured Not applicable 10 Not measured Not measured Not measured Apache-2.0
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 1 active dependents and 1 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 257 stars, 20 forks and 5 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.

What else the check found

  • The last activity is on 10 Oct 2026, 30 days ago. The rules expect an update within 365 days. Dormancy rule

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 1.3.2 base 300, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2026-10-10, 30 days ago, E = 365: active
  • featured: not featured: active_users 1 < 11 and new_adopters 1 < 9 and repository route stars 257 (needs 4539), forks 20 (needs 434), contributors 5 (needs 79)
  • listed: listed: no archive, new or featured rule applies
Crates14 crates

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption1 active dependents, 1 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents1crates.io database dumpYes
New dependents (365 days)1crates.io database dumpYes
Peak active dependents1crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 30 days ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-10-10GitHub repositoryYes
Latest release2026-09-27crates.io database dumpYes
First release2019-11-17crates.io database dumpYes
Latest version1.3.2crates.io database dumpYes
Days the oldest outside issue waits for a reply0GitHub repositoryYes
Maintainer replies over 365 days18GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution52 releases, 971 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases52crates.io database dumpYes
Downloads over 30 days971crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository257 stars, 20 forks, 5 contributors, 2,963 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars257GitHub repositoryYes — one part of the repository route
GitHub forks20GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account5GitHub contributorsYes — one part of the repository route
Commits on the default branch2963GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesNo native code foundcrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesHas Python bindings: radiate-error needs Python only with feature pythoncrates.io database dumpNo
Crates that depend on a listed crate directly0crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.