YARF—Yet Another Random Forests package—is a customizable, asynchronous, and parallelized random-forest implementation for R. It supports custom JavaScript splitting and aggregation behavior, missingness incorporated in attributes, and random-forest-based imputation.
YARF is distributed through the kapelner R-universe, not CRAN:
install.packages(
"YARF",
repos = c(
kapelner = "https://kapelner.r-universe.dev",
CRAN = "https://cloud.r-project.org"
)
)
Java 8 or newer is required.
library(YARF)
fit <- YARF(
X = iris[, 1:4],
y = iris$Species,
num_trees = 100
)
predict(fit, iris[, 1:4])
See the package website for the getting-started guide and reference, and the R-universe package page for builds and binaries.
Run citation("YARF") for citation details. YARF is maintained by Adam Kapelner
with contributions from Matt Olson and Abhinav Patil and is released under
GPL-3.