Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

policytree

grf-labs.github.io

  • Free plan
  • Windows
  • macOS
  • Linux

What the maker publishes

Build requirements
Installing from source requires a C++ compiler and the R packages Rcpp and BH; Windows source builds require Rtools. source
Deeper trees
hybrid_policy_tree() uses a hybrid optimal and greedy approach to fit deeper trees. source
Deployment
desktop source
Free plan
Yes source
Installation
The latest release is available through CRAN, and the development version can be installed from GitHub. source
Integration
PolicyTree uses reward estimates from the grf R package. source
Intended application
The package is intended for settings requiring interpretable predictions, such as medical treatment prescription. source
Intended users
The stated applications include settings that require interpretable predictions, such as medical treatment prescription. source
Larger datasets
The project points to fastpolicytree and sparsepolicytree as modified solvers that may improve performance on larger datasets. source
Learning method
It uses doubly robust reward estimates to find a shallow, globally optimal decision tree. source
License
The package is distributed under the MIT license with an accompanying license file. source
Optimization
policy_tree() uses exhaustive search to fit a globally optimal tree of a specified depth that maximizes the sum of rewards. source
Plotting
Tree plotting requires the optional DiagrammeR package. source
Prediction
A fitted tree can predict an action for new observations; predictions accept numeric matrices or data frames. source
Purpose
PolicyTree learns simple rule based policies represented as shallow decision trees, including interpretable treatment prescriptions. source
Reward estimates
The double_robust_scores function computes reward estimates for a subset of grf forest types. source
Scale considerations
The project points to fastpolicytree and sparsepolicytree as modified solvers that may improve performance on larger datasets. source
Scale limits
The documentation says exact tree search does not scale to arbitrary dataset sizes and gives runtime examples showing substantial growth with more observations. source
Scripting support
Yes source
Support
The project directs usage questions to its GitHub issues page and welcomes contributions. source
Treatment types
The documentation demonstrates policy learning for binary and multi-action treatments, as well as instrumental-variable examples. source
Tree search
The policy_tree function finds a depth k tree by exhaustive search; hybrid_policy_tree combines optimal and greedy approaches for deeper trees. source

Checked against the maker's pages on 12 Oct 2026.