pub struct FeatureMeta {
pub name: String,
pub bins: BinMapper,
pub num_bins: u32,
pub group: u32,
pub column: u32,
pub hist_offset: u32,
}Fields§
§name: String§bins: BinMapper§num_bins: u32Bins in the histogram, the NaN bin included; 0 for a trivial feature.
group: u32The feature’s group; meaningless for a trivial feature.
column: u32Byte offset of the feature in its group’s row.
hist_offset: u32Index of the feature’s bin 0 in the flat histogram.
Implementations§
Source§impl FeatureMeta
impl FeatureMeta
pub fn is_trivial(&self) -> bool
pub fn is_categorical(&self) -> bool
Trait Implementations§
Source§impl Clone for FeatureMeta
impl Clone for FeatureMeta
Source§impl Debug for FeatureMeta
impl Debug for FeatureMeta
Source§impl PartialEq for FeatureMeta
impl PartialEq for FeatureMeta
impl StructuralPartialEq for FeatureMeta
Auto Trait Implementations§
impl Forget for FeatureMeta
impl Freeze for FeatureMeta
impl Move for FeatureMeta
impl RefUnwindSafe for FeatureMeta
impl Send for FeatureMeta
impl Sync for FeatureMeta
impl Unpin for FeatureMeta
impl UnsafeUnpin for FeatureMeta
impl UnwindSafe for FeatureMeta
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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