SkillAgentSearch skills...

RandomForestCI

This package is DEPRECATED. Please use the packages `grf` or `ranger` instead, which have built-in confidence intervals.

Install / Use

/learn @swager/RandomForestCI
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

randomForestCI

🔴 This package is deprecated. Please use one of the following packages instead: 🔴

  • <a href="https://github.com/swager/grf">grf</a>, which has built-in support for resampling-based confidence intervals, or
  • <a href="https://github.com/imbs-hl/ranger">ranger</a>, which has an actively maintained version of the infinitesimal jackknife for random forests.

🔴 Both packages are available from CRAN. 🔴

Confidence intervals for random forests using the infinitesimal jackknife, as developed by Efron (2014) and Wager et al. (2014).

To install this package in R, run the following commands:

install.packages("devtools")
library(devtools) 
install_github("swager/randomForestCI")

Example usage:

library(randomForestCI)

# Make some data...
n = 250
p = 100
X = matrix(rnorm(n * p), n, p)
Y = rnorm(n)
  
#  Run the method
rf = randomForest(X, Y, keep.inbag = TRUE)
ij = randomForestInfJack(rf, X, calibrate = TRUE)

plot(ij)

References

Efron, Bradley. <b>Estimation and accuracy after model selection.</b> <i>Journal of the American Statistical Association</i>, 109(507), 2014. [<a href="http://statweb.stanford.edu/~ckirby/brad/papers/2013ModelSelection.pdf">link</a>]

Wager, Stefan, Trevor Hastie, and Bradley Efron. <b>Confidence intervals for random forests: The jackknife and the infinitesimal jackknife.</b> <i>The Journal of Machine Learning Research</i>, 15(1), 2014. [<a href="http://jmlr.csail.mit.edu/papers/volume15/wager14a/wager14a.pdf">link</a>]

View on GitHub
GitHub Stars70
CategoryDevelopment
Updated1y ago
Forks22

Languages

R

Security Score

80/100

Audited on Nov 3, 2024

No findings