1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Explainable AI Integration for Inference Monitoring
//!
//! This module provides native `Explainable` trait implementations for APR format models,
//! with decision path types for full prediction traceability.
//!
//! # Toyota Way: 現地現物 (Genchi Genbutsu)
//!
//! Every prediction can be traced to its decision path. All decisions are explainable.
//!
//! # Features
//!
//! - `LinearExplainable`: Wraps linear models with feature contribution tracking
//! - `TreeExplainable`: Wraps decision trees with split path tracking
//! - `EnsembleExplainable`: Wraps ensembles with per-model aggregation
//!
//! # Example
//!
//! ```ignore
//! use aprender::linear_model::LinearRegression;
//! use aprender::explainable::LinearExplainable;
//! use aprender::explainable::path::{Explainable, DecisionPath};
//!
//! let model = LinearRegression::new();
//! model.fit(&x, &y)?;
//!
//! // Wrap with explainability
//! let explainable = LinearExplainable::new(model);
//! let (outputs, paths) = explainable.predict_explained(&features, 1);
//! println!("{}", paths[0].explain());
//! ```
pub use ;
pub use ;
pub use ;
pub use ;