[][src]Struct sparrow::scanner::booster::learner::TreeNode

pub struct TreeNode {
    pub prt_index: usize,
    pub feature: usize,
    pub threshold: u8,
    pub predict: (f32, f32),
    pub gamma: f32,
    pub raw_martingale: f32,
    pub sum_c: f32,
    pub sum_c_squared: f32,
    pub bound: f32,
    pub num_scanned: usize,
    pub fallback: bool,
    pub positive: usize,
    pub negative: usize,
    pub positive_weight: f32,
    pub negative_weight: f32,
}

A weak rule with an edge larger or equal to the targetting value of gamma

Fields

prt_index: usizefeature: usizethreshold: u8predict: (f32, f32)gamma: f32raw_martingale: f32sum_c: f32sum_c_squared: f32bound: f32num_scanned: usizefallback: boolpositive: usizenegative: usizepositive_weight: f32negative_weight: f32

Methods

impl TreeNode[src]

pub fn write_log(&self)[src]

Auto Trait Implementations

impl RefUnwindSafe for TreeNode

impl Send for TreeNode

impl Sync for TreeNode

impl Unpin for TreeNode

impl UnwindSafe for TreeNode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,