pub struct DecisionTreeEngine { /* private fields */ }Expand description
Decision Tree Engine
Implementations§
Source§impl DecisionTreeEngine
impl DecisionTreeEngine
Sourcepub fn new(config: DecisionTreeConfig) -> Result<Self, String>
pub fn new(config: DecisionTreeConfig) -> Result<Self, String>
Sourcepub fn analyze(&self) -> Result<TreeResult, String>
pub fn analyze(&self) -> Result<TreeResult, String>
Analyze the decision tree using backward induction
§Errors
Returns an error if the tree has no root or a branch references a missing node.
Sourcepub const fn config(&self) -> &DecisionTreeConfig
pub const fn config(&self) -> &DecisionTreeConfig
Get the configuration
Auto Trait Implementations§
impl Freeze for DecisionTreeEngine
impl RefUnwindSafe for DecisionTreeEngine
impl Send for DecisionTreeEngine
impl Sync for DecisionTreeEngine
impl Unpin for DecisionTreeEngine
impl UnsafeUnpin for DecisionTreeEngine
impl UnwindSafe for DecisionTreeEngine
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