pub struct NodeInfos {
pub feature: Option<usize>,
pub error: usize,
pub split: Option<f64>,
pub label: Option<usize>,
}Expand description
The content of a tree node.
Fields§
§feature: Option<usize>The feature tested by an internal node; None for a leaf.
error: usizeMisclassifications of the subtree rooted here.
split: Option<f64>The threshold of an internal node: instances with
x[feature] <= split go left.
label: Option<usize>The class predicted by a leaf (the majority class of its instances).
Implementations§
Trait Implementations§
impl Copy for NodeInfos
Source§impl<'de> Deserialize<'de> for NodeInfos
impl<'de> Deserialize<'de> for NodeInfos
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 NodeInfos
impl RefUnwindSafe for NodeInfos
impl Send for NodeInfos
impl Sync for NodeInfos
impl Unpin for NodeInfos
impl UnsafeUnpin for NodeInfos
impl UnwindSafe for NodeInfos
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