pub struct DecisionStump {
pub feature_idx: usize,
pub threshold: f64,
pub left_class: usize,
pub right_class: usize,
}Expand description
A single axis-aligned split.
Fields§
§feature_idx: usizeIndex into the feature vector.
threshold: f64Split threshold.
left_class: usizeClass label when feature < threshold.
right_class: usizeClass label when feature >= threshold.
Implementations§
Trait Implementations§
Source§impl Clone for DecisionStump
impl Clone for DecisionStump
Source§fn clone(&self) -> DecisionStump
fn clone(&self) -> DecisionStump
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecisionStump
impl RefUnwindSafe for DecisionStump
impl Send for DecisionStump
impl Sync for DecisionStump
impl Unpin for DecisionStump
impl UnsafeUnpin for DecisionStump
impl UnwindSafe for DecisionStump
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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