farooqkz / stack-gp-test

Utilizing Stack Genetic Programming to solve a symbolic regression problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stack genetic programming test

This is an exercise to use Stack GP for a simple symbolic regression task. If you want to get familiar with Genetic Programming in a few minutes, read GP.md

Crates used

  • rand is used as an RNG
  • rayon is used to use multiple threads and thus higher performance
  • clap is used to parse command line arguments. You can specify the population and other hyper parameters

Known issues

  • It seems that on some computers, rayon detect 2 processors rather than 4. There are actually 2 processors but the CPU supports 4 threads. This technology is known as hyper threading. To overcome this, you might want to specify number of processors used manually in the code.

What SR problem does it solve?

f(x) = 2 * x * x

Since this software is written in Rust, is it idiomatic?

I've tried but I'm not a Rust expert, yet.

License

The MIT License. Copyright (C) 2023 Farooq Karimi Zadeh

fkz@riseup.net

About

Utilizing Stack Genetic Programming to solve a symbolic regression problem


Languages

Language:Rust 100.0%