Optimising Random Forest Stability by Determining the Optimal Number of Trees
Overview
Calculating the stability of random forest with certain numbers of trees. The non-linear relationship between stability and numbers of trees is described using a logistic regression model and used to estimate the optimal number of trees.
Improvements
- Improved output of
estimate_numtreesandestimate_stabilityfunctions
Bug Fixes
- Fixed a bug with the plot functions for the
opt_importance_objectandopt_prediction_objectobjects.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 7
- Examples that run
- 14%1 run in a plain check · 6 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 14%
Downloads
Repository
- PRs merged (all time)
- 78%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
PRs over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/tmlange/optrf on 2026-10-18.
Dependencies
Installing optRF adds 6 packages (5 with compiled code, 4.2 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, lpSolve 457 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.1Latest
- RR 4.5.0 released · 2025-04-11
- 1.2.0
- 1.1.02025-02-03 · diff ↗
- 1.0.12024-09-23
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-09-23
- Total releases
- 4 / 2 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.6.0
- Bundled data
- 158 KB / 1 file
- Download size
- 1.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("optRF")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1186/s12859-025-06097-1.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
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.