pub enum MissingNodeTreatment {
None,
AssignToParent,
AverageLeafWeight,
AverageNodeWeight,
}Variants§
None
Calculate missing node weight values without any constraints.
AssignToParent
Assign the weight of the missing node to that of the parent.
AverageLeafWeight
After training each tree, starting from the bottom of the tree, assign the missing node weight to the weighted average of the left and right child nodes. Next assign the parent to the weighted average of the children nodes. This is performed recursively up through the entire tree. This is performed as a post processing step on each tree after it is built, and prior to updating the predictions for which to train the next tree.
AverageNodeWeight
Set the missing node to be equal to the weighted average weight of the left and the right nodes.
Trait Implementations§
Source§impl Clone for MissingNodeTreatment
impl Clone for MissingNodeTreatment
Source§fn clone(&self) -> MissingNodeTreatment
fn clone(&self) -> MissingNodeTreatment
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<'de> Deserialize<'de> for MissingNodeTreatment
impl<'de> Deserialize<'de> for MissingNodeTreatment
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
Source§impl Serialize for MissingNodeTreatment
impl Serialize for MissingNodeTreatment
impl Copy for MissingNodeTreatment
Auto Trait Implementations§
impl Freeze for MissingNodeTreatment
impl RefUnwindSafe for MissingNodeTreatment
impl Send for MissingNodeTreatment
impl Sync for MissingNodeTreatment
impl Unpin for MissingNodeTreatment
impl UnwindSafe for MissingNodeTreatment
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