pub struct DecisionTree {
pub root: DecisionNode,
pub rules_evaluated: Vec<RuleEvaluation>,
pub decision: ExplainedDecision,
pub tree_hash: [u8; 32],
}Expand description
A decision tree for explainability
Fields§
§root: DecisionNodeRoot node
rules_evaluated: Vec<RuleEvaluation>All rules evaluated
decision: ExplainedDecisionFinal decision
tree_hash: [u8; 32]Tree hash (for verification)
Trait Implementations§
Source§impl Clone for DecisionTree
impl Clone for DecisionTree
Source§fn clone(&self) -> DecisionTree
fn clone(&self) -> DecisionTree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecisionTree
impl Debug for DecisionTree
Source§impl<'de> Deserialize<'de> for DecisionTree
impl<'de> Deserialize<'de> for DecisionTree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DecisionTree
impl RefUnwindSafe for DecisionTree
impl Send for DecisionTree
impl Sync for DecisionTree
impl Unpin for DecisionTree
impl UnwindSafe for DecisionTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more