A unified framework for symbolic regression (SR) and multi-view symbolic regression (MvSR) designed for complex, nonlinear systems, with particular applicability to ecological datasets. The package implements a four-stage workflow: data subset generation, functional form discovery, numerical parameter optimization, and multi-objective evaluation. It provides a high-level formula-style interface that abstracts and extends multiple discovery engines: genetic programming (via PySR), Reinforcement Learning with Monte Carlo Tree Search (via RSRM), and exhaustive generalized linear model search. 'leaf' extends these methods by enabling multi-view discovery, where functional structures are shared across groups while parameters are fitted locally, and by supporting the enforcement of domain-specific constraints, such as sign consistency across groups. The framework automatically handles data normalization, link functions, and back-transformation, ensuring that discovered symbolic equations remain interpretable and valid on the original data scale. Implements methods following ongoing work by the authors (2026, in preparation).
| Version: | 0.1.0 |
| Imports: | R6, utils, reticulate (≥ 1.30), ggplot2, dplyr, rlang, rappdirs, rstudioapi |
| Suggests: | rmarkdown, knitr, testthat (≥ 3.0.0) |
| Published: | 2026-04-21 |
| DOI: | 10.32614/CRAN.package.leaf (may not be active yet) |
| Author: | Francisco Martins |
| Maintainer: | Francisco Martins <francisco.martins at tecnico.ulisboa.pt> |
| License: | MIT + file LICENSE |
| Copyright: | see inst/COPYRIGHTS leaf copyright details |
| URL: | https://github.com/NabiaAI/Leaf |
| NeedsCompilation: | no |
| SystemRequirements: | Conda, Python (>= 3.10) |
| Materials: | README, NEWS |
| CRAN checks: | leaf results |
| Package source: | leaf_0.1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=leaf to link to this page.