pub struct TreeData {
pub feature_indices: Vec<u16>,
pub thresholds: Vec<f32>,
pub left_children: Vec<i32>,
pub right_children: Vec<i32>,
pub leaf_values: Vec<f32>,
}Expand description
Decision tree structure data
Fields§
§feature_indices: Vec<u16>Feature indices for each node
thresholds: Vec<f32>Thresholds for each node
left_children: Vec<i32>Left child indices (-1 for leaf)
right_children: Vec<i32>Right child indices (-1 for leaf)
leaf_values: Vec<f32>Leaf values (predictions)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeData
impl RefUnwindSafe for TreeData
impl Send for TreeData
impl Sync for TreeData
impl Unpin for TreeData
impl UnwindSafe for TreeData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more