An Evolutionary Computing library for Rust. Currently an incomplete implementation of Genetic Programming.
This approach is inspired by the GP in Python's DEAP. The aim is for evco
to be more performant and obtain simpler code through Rust's typesystem.
- SYMBOLIC REGRESSION:
examples/symbolic_regression.rs
evolves a Symbolic Regression to approximatex^4 + x^3 + x^2 + x
. Run it usingcargo run --example symbolic_regression
. - (Unfinished) SNAKE AI:
examples/snake.rs
will in time evolve a Snake AI. For now it simply evaluates random trees. Run it usingcargo run --example snake
.
- Reformat code with
cargo fmt
. - Lint code with
cargo build --features dev
. - Run tests with
cargo test
.
evco
is distributed under the LGPLv3.0 license.