causasv 0.8.9

Causal feature attribution via Asymmetric Shapley Values (ASV) over DAGs — Rust + Python
Documentation
1
2
3
4
5
6
7
use crate::error::CausasvError;
use crate::graph::NodeId;

/// Type alias for a value function over node coalitions.
/// The library guarantees the coalition slice is sorted in ascending NodeId order before calling,
/// so callers may use it as a stable cache key.
pub type ValueFn<'a> = dyn Fn(&[NodeId]) -> Result<f64, CausasvError> + 'a;