shap-rs 0.1.0

Native Rust implementations of model-agnostic, linear, and TreeSHAP explainers
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Native decision-tree types and the polynomial-time TreeSHAP algorithm.
mod model;
mod path;
mod treeshap;

pub use model::{
    MissingBranch, MissingValuePolicy, Node, SplitComparison, Tree, TreeArrays, TreeEnsemble,
};
#[cfg(feature = "json-adapters")]
pub mod adapters;
pub(crate) use treeshap::{conditioned_tree_shap, tree_shap};