项目作者: heal-research

项目描述 :
C++ Large Scale Genetic Programming
高级语言: C++
项目地址: git://github.com/heal-research/operon.git
创建时间: 2019-09-10T20:19:07Z
项目社区:https://github.com/heal-research/operon

开源协议:Other

下载







Modern C++ framework for Symbolic Regression

License
build-linux
build-macos
build-windows
Documentation Status
Matrix Channel

Operon is a modern C++ framework for symbolic regression that uses genetic programming to explore a hypothesis space of possible mathematical expressions in order to find the best-fitting model for a given regression target.
Its main purpose is to help develop accurate and interpretable white-box models in the area of system identification. More in-depth documentation available at https://operongp.readthedocs.io/.

How does it work?

Broadly speaking, genetic programming (GP) is said to evolve a population of “computer programs” ― AST-like structures encoding behavior for a given problem domain ― following the principles of natural selection. It repeatedly combines random program parts keeping only the best results ― the “fittest”. Here, the biological concept of fitness is defined as a measure of a program’s ability to solve a certain task.

In symbolic regression, the programs represent mathematical expressions typically encoded as expression trees. Fitness is usually defined as goodness of fit between the dependent variable and the prediction of a tree-encoded model. Iterative selection of best-scoring models followed by random recombination leads naturally to a self-improving process that is able to uncover patterns in the data:



Build instructions

The project requires CMake and a compiler supporting C++20. The recommended way to build Operon is via either nix or vcpkg.

Check out https://github.com/heal-research/operon/blob/master/BUILDING.md for detailed build instructions and how to enable/disable certain features.

Nix

First, you have to install nix and enable flakes.
For a portable install, see nix-portable.

To create a development shell:

  1. nix develop github:heal-research/operon --no-write-lock-file

To build Operon (a symlink to the nix store called result will be created).

  1. nix build github:heal-research/operon --no-write-lock-file

Vcpkg

Select the build generator appropriate for your system and point CMake to the vcpkg.cmake toolchain file

  1. cmake -S . -B build -G "Visual Studio 16 2019" -A x64 \
  2. -DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake \
  3. -DVCPKG_OVERLAY_PORTS=.\ports

The file CMakePresets.json contains some presets that you may find useful. For using clang-cl instead of cl, pass -TClangCL to the above (official documentation).

Python wrapper

Python bindings for the Operon library are available as a separate project: PyOperon, which also includes a scikit-learn compatible regressor.

Bibtex info

If you find Operon useful you can cite our work as:

  1. @inproceedings{10.1145/3377929.3398099,
  2. author = {Burlacu, Bogdan and Kronberger, Gabriel and Kommenda, Michael},
  3. title = {Operon C++: An Efficient Genetic Programming Framework for Symbolic Regression},
  4. year = {2020},
  5. isbn = {9781450371278},
  6. publisher = {Association for Computing Machinery},
  7. address = {New York, NY, USA},
  8. url = {https://doi.org/10.1145/3377929.3398099},
  9. doi = {10.1145/3377929.3398099},
  10. booktitle = {Proceedings of the 2020 Genetic and Evolutionary Computation Conference Companion},
  11. pages = {15621570},
  12. numpages = {9},
  13. keywords = {symbolic regression, genetic programming, C++},
  14. location = {Canc\'{u}n, Mexico},
  15. series = {GECCO '20}
  16. }

Operon was also featured in a recent survey of symbolic regression methods, where it showed good results:

  1. @article{DBLP:journals/corr/abs-2107-14351,
  2. author = {William G. La Cava and
  3. Patryk Orzechowski and
  4. Bogdan Burlacu and
  5. Fabr{\'{\i}}cio Olivetti de Fran{\c{c}}a and
  6. Marco Virgolin and
  7. Ying Jin and
  8. Michael Kommenda and
  9. Jason H. Moore},
  10. title = {Contemporary Symbolic Regression Methods and their Relative Performance},
  11. journal = {CoRR},
  12. volume = {abs/2107.14351},
  13. year = {2021},
  14. url = {https://arxiv.org/abs/2107.14351},
  15. eprinttype = {arXiv},
  16. eprint = {2107.14351},
  17. timestamp = {Tue, 03 Aug 2021 14:53:34 +0200},
  18. biburl = {https://dblp.org/rec/journals/corr/abs-2107-14351.bib},
  19. bibsource = {dblp computer science bibliography, https://dblp.org}
  20. }