Skip to content

xrf

eXtreme RuleFit

v0.3.1 · Dec 17, 2025 · MIT + file LICENSE

Description

An implementation of the RuleFit algorithm as described in Friedman & Popescu (2008) <doi:10.1214/07-AOAS148>. eXtreme Gradient Boosting ('XGBoost') is used to build rules, and 'glmnet' is used to fit a sparse linear model on the raw and rule features. The result is a model that learns similarly to a tree ensemble, while often offering improved interpretability and achieving improved scoring runtime in live applications. Several algorithms for reducing rule complexity are provided, most notably hyperrectangle de-overlapping. All algorithms scale to several million rows and support sparse representations to handle tens of thousands of dimensions.

Downloads

1.3K

Last 30 days

3384th

2.9K

Last 90 days

17.3K

Last year

Trend: +47.1% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies cli dplyr glmnet Matrix rlang xgboost butcher rules xrf

Version History

new 0.3.1 Mar 10, 2026
updated 0.3.1 ← 0.3.0 diff Dec 16, 2025
updated 0.3.0 ← 0.2.2 diff Dec 4, 2025
updated 0.2.2 ← 0.2.1 diff Oct 3, 2022
updated 0.2.1 ← 0.2.0 diff Mar 30, 2022
updated 0.2.0 ← 0.1.2 diff May 2, 2020
new 0.1.2 Apr 27, 2019