{
  "_id": "6a101899acfb0bcc41c857f5",
  "Package": "leaf",
  "Type": "Package",
  "Title": "Learning Equations for Automated Function Discovery",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Francisco\", \"Martins\",\nrole = c(\"cre\", \"aut\", \"cph\"),\nemail = \"francisco.martins@tecnico.ulisboa.pt\",\ncomment = c(ORCID = \"https://orcid.org/0009-0007-9941-2994\")),\nperson(\"Pedro\", \"Cardoso\",\nrole = \"aut\",\nemail = \"pmcardoso@ciencias.ulisboa.pt\",\ncomment = c(ORCID = \"https://orcid.org/0000-0001-8119-9960\")),\nperson(\"Manuel\", \"Lopes\",\nrole = \"aut\",\ncomment = c(ORCID = \"https://orcid.org/0000-0002-6238-8974\")),\nperson(\"Vasco\", \"Branco\",\nrole = \"aut\",\nemail = \"vasco.branco@helsinki.fi\",\ncomment = c(ORCID = \"https://orcid.org/0000-0001-7797-3183\")),\nperson(\"INESC-ID\", role = \"fnd\",\ncomment = \"Financed by FCT - PTDC/CCI-COM/5060/2021\"),\nperson(\"intell-sci-comput\", role = \"cph\",\ncomment = \"Copyright holder of RSRM (<https://github.com/intell-sci-comput/RSRM>)\"))",
  "Maintainer": "Francisco Martins <francisco.martins@tecnico.ulisboa.pt>",
  "Description": "A unified framework for symbolic regression (SR) and\nmulti-view symbolic regression (MvSR) designed for complex,\nnonlinear systems, with particular applicability to ecological\ndatasets. The package implements a four-stage workflow: data\nsubset generation, functional form discovery, numerical\nparameter optimization, and multi-objective evaluation. It\nprovides a high-level formula-style interface that abstracts\nand extends multiple discovery engines: genetic programming\n(via PySR), Reinforcement Learning with Monte Carlo Tree Search\n(via RSRM), and exhaustive generalized linear model search.\n'leaf' extends these methods by enabling multi-view discovery,\nwhere functional structures are shared across groups while\nparameters are fitted locally, and by supporting the\nenforcement of domain-specific constraints, such as sign\nconsistency across groups. The framework automatically handles\ndata normalization, link functions, and back-transformation,\nensuring that discovered symbolic equations remain\ninterpretable and valid on the original data scale. Implements\nmethods following ongoing work by the authors (2026, in\npreparation).",
  "URL": "https://github.com/NabiaAI/Leaf",
  "Note": "Includes modified Python code from the RSRM project\n(<https://github.com/intell-sci-comput/RSRM>) under the MIT\nLicense.",
  "License": "MIT + file LICENSE",
  "Copyright": "see inst/COPYRIGHTS",
  "Encoding": "UTF-8",
  "SystemRequirements": "Conda, Python (>= 3.10)",
  "RoxygenNote": "7.3.3",
  "Config/Needs/website": "rmarkdown",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 08:46:04 UTC",
    "User": "root"
  },
  "Config/testthat/edition": "3",
  "Author": "Francisco Martins [cre, aut, cph] (ORCID:\n<https://orcid.org/0009-0007-9941-2994>), Pedro Cardoso [aut]\n(ORCID: <https://orcid.org/0000-0001-8119-9960>), Manuel Lopes\n[aut] (ORCID: <https://orcid.org/0000-0002-6238-8974>), Vasco\nBranco [aut] (ORCID: <https://orcid.org/0000-0001-7797-3183>),\nINESC-ID [fnd] (Financed by FCT - PTDC/CCI-COM/5060/2021),\nintell-sci-comput [cph] (Copyright holder of RSRM\n(<https://github.com/intell-sci-comput/RSRM>))",
  "Config/pak/sysreqs": "libpng-dev python3",
  "Repository": "https://1-0-go.r-universe.dev",
  "Date/Publication": "2026-04-21 22:03:38 UTC",
  "RemoteUrl": "https://github.com/cran/leaf",
  "RemoteRef": "HEAD",
  "RemoteSha": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
  "MD5sum": "2a0b8761d21161b28ac24e4038648d90",
  "_user": "1-0-go",
  "_type": "src",
  "_file": "leaf_0.1.0.tar.gz",
  "_fileid": "9cd4541df5c0ade5be67ab6f4bfa9cee15690dead06cbf73f9bacd2820e19296",
  "_filesize": 1040296,
  "_sha256": "9cd4541df5c0ade5be67ab6f4bfa9cee15690dead06cbf73f9bacd2820e19296",
  "_created": "2026-05-22T08:46:04.000Z",
  "_published": "2026-05-22T08:49:29.218Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77346675141,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156521413"
    },
    {
      "job": 77346675160,
      "time": 134,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156519149"
    },
    {
      "job": 77346675126,
      "time": 167,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156520918"
    },
    {
      "job": 77346675106,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156512397"
    },
    {
      "job": 77346238334,
      "time": 173,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156477811"
    },
    {
      "job": 77346675137,
      "time": 99,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156508152"
    },
    {
      "job": 77346675167,
      "time": 96,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156507872"
    },
    {
      "job": 77346675121,
      "time": 88,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156504415"
    },
    {
      "job": 77346675149,
      "time": 105,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156510333"
    }
  ],
  "_buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/leaf",
  "_commit": {
    "id": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
    "author": "Francisco Martins <francisco.martins@tecnico.ulisboa.pt>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1776809018
  },
  "_maintainer": {
    "name": "Francisco Martins",
    "email": "francisco.martins@tecnico.ulisboa.pt",
    "login": "1-0-go",
    "description": "",
    "uuid": 35638650
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "reticulate",
      "version": ">= 1.30",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rappdirs",
      "role": "Imports"
    },
    {
      "package": "rstudioapi",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-17",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-04-21"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "1-0-go",
      "count": 1,
      "uuid": 35638650
    }
  ],
  "_userbio": {
    "uuid": 35638650,
    "type": "user",
    "name": "1-0-GO"
  },
  "_downloads": {
    "count": 539,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/leaf"
  },
  "_devurl": "https://github.com/nabiaai/leaf",
  "_searchresults": 7,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/leaf.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_realowner": "1-0-go",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-21"
    }
  ],
  "_exports": [
    "backend_available",
    "check_python_environment",
    "generate_group_subsets",
    "generate_shuffle_subsets",
    "generate_subsets",
    "get_python_lib",
    "get_python_path",
    "install_leaf",
    "leaf_data",
    "load_leaf_analysis",
    "pareto_2d",
    "plot_pareto",
    "SymbolicRegressor",
    "uninstall_leaf"
  ],
  "_help": [
    {
      "page": "backend_available",
      "title": "Check backend availability",
      "topics": [
        "backend_available"
      ]
    },
    {
      "page": "check_python_environment",
      "title": "Check Python dependencies",
      "topics": [
        "check_python_environment"
      ]
    },
    {
      "page": "generate_group_subsets",
      "title": "Generate group-aware training subsets (wrapper around scikit-learn)",
      "topics": [
        "generate_group_subsets"
      ]
    },
    {
      "page": "generate_shuffle_subsets",
      "title": "Generate shuffle-based training subsets (wrapper around scikit-learn)",
      "topics": [
        "generate_shuffle_subsets"
      ]
    },
    {
      "page": "generate_subsets",
      "title": "Generate standard (non-group) training subsets (wrapper around scikit-learn)",
      "topics": [
        "generate_subsets"
      ]
    },
    {
      "page": "get_python_lib",
      "title": "Load a Python module",
      "topics": [
        "get_python_lib"
      ]
    },
    {
      "page": "get_python_path",
      "title": "Get leaf's python environment path",
      "topics": [
        "get_python_path"
      ]
    },
    {
      "page": "install_leaf",
      "title": "Install the LEAF Python Environment",
      "topics": [
        "install_leaf"
      ]
    },
    {
      "page": "leaf_data",
      "title": "Example data packaged with *leaf*",
      "topics": [
        "leaf_data"
      ]
    },
    {
      "page": "load_leaf_analysis",
      "title": "Load a Saved Leaf Analysis",
      "topics": [
        "load_leaf_analysis"
      ]
    },
    {
      "page": "pareto_2d",
      "title": "Compute 2D Pareto Front",
      "topics": [
        "pareto_2d"
      ]
    },
    {
      "page": "plot_pareto",
      "title": "Plot the Pareto Front",
      "topics": [
        "plot_pareto"
      ]
    },
    {
      "page": "SymbolicRegressor",
      "title": "Symbolic Regressor",
      "topics": [
        "SymbolicRegressor"
      ]
    },
    {
      "page": "uninstall_leaf",
      "title": "Uninstall the LEAF Python Environment",
      "topics": [
        "uninstall_leaf"
      ]
    }
  ],
  "_readme": "https://github.com/cran/leaf/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "here",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "png",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppTOML",
    "reticulate",
    "rlang",
    "rprojroot",
    "rstudioapi",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "classification_example.Rmd",
      "filename": "classification_example.html",
      "title": "Binary classification with leaf",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Stage 1: Initialize the symbolic regressor",
        "Stage 2: Discover equation skeletons",
        "Stage 3: Fit parameters and compute loss",
        "Stage 4: Evaluate additional metrics"
      ],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "cross_validation.Rmd",
      "filename": "cross_validation.html",
      "title": "Cross-Validation for Symbolic Regression",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "getting_started.Rmd",
      "filename": "getting_started.html",
      "title": "Getting Started with leaf",
      "author": "Your Name",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load package",
        "Initialize a symbolic regression analysis",
        "Load the data",
        "Define the formula",
        "Search for candidate equations",
        "Fit equation parameters",
        "Evaluate equations",
        "Make predictions",
        "Inspect equation",
        "See final results",
        "Plot pareto front",
        "Compute optimal threshold (only for classification tasks)",
        "Save and load analysis"
      ],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "initialization.Rmd",
      "filename": "initialization.html",
      "title": "Initialization",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "pareto.Rmd",
      "filename": "pareto.html",
      "title": "Introduction to 2D Pareto Fronts",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "manual_engine.Rmd",
      "filename": "manual_engine.html",
      "title": "Manual Symbolic Regression: Testing Hypotheses",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Installation",
        "Load package",
        "Define the formula and custom equations",
        "Define the manual search",
        "Load the data",
        "Register equations",
        "Fit parameters and inspect results"
      ],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "minimal_example.Rmd",
      "filename": "minimal_example.html",
      "title": "Minimal Example: Quick Start",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "MvSR.Rmd",
      "filename": "MvSR.html",
      "title": "Multi-View Symbolic Regression with leaf",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    },
    {
      "source": "train_test_split.Rmd",
      "filename": "train_test_split.html",
      "title": "Train-Test Splitting for Symbolic Regression",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-04-21 22:03:38",
      "modified": "2026-04-21 22:03:38",
      "commits": 1
    }
  ],
  "_score": 3.6532125137753435,
  "_indexed": true,
  "_nocasepkg": "leaf",
  "_universes": [
    "1-0-go",
    "nabiaai"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T08:48:23.000Z",
      "distro": "noble",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "25bff3f7a9d604ba36b3e5f16f7f36703e7e00286d78f0d10c57d8fa8057b292",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-22T08:48:18.000Z",
      "distro": "noble",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "d0e24aab44423055a1d29da2e226bb817f5f33fbbb2e54ea821373d87a1f3a4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T08:48:28.000Z",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "fd84e18fcaae3e01fb85ab941ae07cf9cce2d00c0b53efd4a967d1397aac5b2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-22T08:48:03.000Z",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "c14fa6c8b42e47e6680a8c26d2da2b4766ce1ab5bbf94f8a9821c7f40eddc1ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-22T08:48:03.000Z",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "90fe3ad60499fd0ee798bb010887ad3ad20ca4a7fc60ea32a2e5f3bc4eaa9997",
      "status": "success",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T08:47:34.000Z",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "5db617239712616701808191d5b5575655360e7de42be39025cb13ce149fb7d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T08:47:23.000Z",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "ca0e65e0ebc5c0e643db9f2a5cc43f76af73a13c41c904599bb09f159feb43f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-22T08:47:41.000Z",
      "commit": "88a5398bf4cc9b88dc3a1ab180231c1a97e18133",
      "fileid": "e144a4ddc0e7a31bb29a880ed94f482096d6d0799a905ed9f18028e1b3620108",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/1-0-go/actions/runs/26277786746"
    }
  ]
}