Skip to content

Learning Equations for Automated Function Discovery

0packages depend
2.1Kdownloads / year
11.6%test coverage
13/13flavors OK

Overview

About
Maintained by Francisco MartinsCRAN page ↗GitHub ↗Declared funder: INESC-ID

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).

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
  • OK8 OK2026-04-22
Advisories

none known

Documentation

In release 0.1.0
READMEYes · 290 wordsVignettesYes · 9 · dynamicNEWSYes · 67% structured · does not mention 0.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
16 (2 internal)includes a package overview page
Examples that run
73%8 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
Exported functions with examples
79%
Documented parameters
100%
Return-value docs
93%
Help pages citing references
13%

Downloads

2.1K
CRAN downloads in the past year
Rank #14,612 · ~6/day · ~178/mo
Daily download trend is not available in this view yet.
29130 days
81190 days
2.1K1 year
Compare downloads with other packages →
Also on38 r2u4 autocran

Repository

0Stars
0Forks
1Open issues
0Open PRs
0Releases
License file reads as MIT · Last activity 2026-10-15
Responsiveness
not measured
PracticesBeta

Checks run against github.com/nabiaai/leaf on 2026-10-18.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing leaf adds 34 packages (18 with compiled code, 21 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, reticulate 1.6 MB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Maintainer since 0.1.0 (2026), Author, Copyright holder
Copyright holder
Copyright holder of RSRM (<https://github.com/intell-sci-comput/RSRM>)
Funder
Financed by FCT - PTDC/CCI-COM/5060/2021
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-04-21 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-21
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Copyright
see inst/COPYRIGHTS
Download size
850 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("leaf")
Martins, F., INESC-ID, intell-sci-comput, Branco, V., Cardoso, P., & Lopes, M. (2026). leaf: Learning Equations for Automated Function Discovery (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.leaf

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for leaf version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy