pub enum PairWeights {
Exact(Vec<((u32, u32), f32)>),
Hashed {
bits: u32,
weights: Vec<f32>,
},
}Expand description
The weights of the pairs of features of a model.
Variants§
Exact(Vec<((u32, u32), f32)>)
A weight of its own for each pair: the numbers of its two features, the smaller first, and the weight. The pairs are sorted, each once.
Hashed
A table of 2^bits weights the pairs are hashed into; pairs that
fall on the same weight share it.
Trait Implementations§
Source§impl Clone for PairWeights
impl Clone for PairWeights
Source§impl Debug for PairWeights
impl Debug for PairWeights
Source§impl PartialEq for PairWeights
impl PartialEq for PairWeights
impl StructuralPartialEq for PairWeights
Auto Trait Implementations§
impl Forget for PairWeights
impl Freeze for PairWeights
impl Move for PairWeights
impl RefUnwindSafe for PairWeights
impl Send for PairWeightswhere
RawVecInner: Send,
impl Sync for PairWeightswhere
RawVecInner: Sync,
impl Unpin for PairWeights
impl UnsafeUnpin for PairWeightswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<((u32, u32), f32)>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
impl UnwindSafe for PairWeightswhere
RawVecInner: UnwindSafe,
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