Package: leaf 0.1.0
leaf: Learning Equations for Automated Function Discovery
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).
Authors:
leaf_0.1.0.tar.gz
leaf_0.1.0.zip(r-4.7-any)leaf_0.1.0.zip(r-4.6-any)leaf_0.1.0.zip(r-4.5-any)
leaf_0.1.0.tgz(r-4.6-any)leaf_0.1.0.tgz(r-4.5-any)
leaf_0.1.0.tar.gz(r-4.7-any)leaf_0.1.0.tar.gz(r-4.6-any)
leaf_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
leaf/json (API)
| # Install 'leaf' in R: |
| install.packages('leaf', repos = c('https://1-0-go.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/nabiaai/leaf/issues
Last updated from:88a5398bf4. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 131 | ||
| source / vignettes | OK | 298 | ||
| linux-release | OK | 132 | ||
| macos-release | OK | 174 | ||
| macos-oldrel | OK | 173 | ||
| windows-devel | OK | 93 | ||
| windows-release | OK | 86 | ||
| windows-oldrel | OK | 80 | ||
| wasm-release | OK | 110 |
Exports:backend_availablecheck_python_environmentgenerate_group_subsetsgenerate_shuffle_subsetsgenerate_subsetsget_python_libget_python_pathinstall_leafleaf_dataload_leaf_analysispareto_2dplot_paretoSymbolicRegressoruninstall_leaf
Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtablehereisobandjsonlitelabelinglatticelifecyclemagrittrMatrixpillarpkgconfigpngR6rappdirsRColorBrewerRcppRcppTOMLreticulaterlangrprojrootrstudioapiS7scalestibbletidyselectutf8vctrsviridisLitewithr
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Last update: 2026-04-21
Started: 2026-04-21
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Check backend availability | backend_available |
| Check Python dependencies | check_python_environment |
| Generate group-aware training subsets (wrapper around scikit-learn) | generate_group_subsets |
| Generate shuffle-based training subsets (wrapper around scikit-learn) | generate_shuffle_subsets |
| Generate standard (non-group) training subsets (wrapper around scikit-learn) | generate_subsets |
| Load a Python module | get_python_lib |
| Get leaf's python environment path | get_python_path |
| Install the LEAF Python Environment | install_leaf |
| Example data packaged with *leaf* | leaf_data |
| Load a Saved Leaf Analysis | load_leaf_analysis |
| Compute 2D Pareto Front | pareto_2d |
| Plot the Pareto Front | plot_pareto |
| Symbolic Regressor | SymbolicRegressor |
| Uninstall the LEAF Python Environment | uninstall_leaf |
