pub struct BinaryScannTraining {
pub dim_bits: u32,
pub geometry: ScannGeometry,
pub train_iters: usize,
pub seed: u64,
}Expand description
Training controls for a global binary ScaNN tree.
Readiness and sample size are intentionally absent: both are hardcoded and
derived from geometry, matching the float ScaNN builder contract.
Fields§
§dim_bits: u32§geometry: ScannGeometry§train_iters: usize§seed: u64Implementations§
Source§impl BinaryScannTraining
impl BinaryScannTraining
pub fn validate(&self) -> ScannResult<()>
Sourcepub fn training_state(&self, observed: u64) -> ScannResult<ScannTrainingState>
pub fn training_state(&self, observed: u64) -> ScannResult<ScannTrainingState>
The corpus floor is fixed in code and raised only when the chosen geometry needs the hardcoded minimum sample coverage for every terminal leaf.
pub fn desired_training_vectors(&self, observed: u64) -> ScannResult<u64>
Trait Implementations§
Source§impl Clone for BinaryScannTraining
impl Clone for BinaryScannTraining
Source§fn clone(&self) -> BinaryScannTraining
fn clone(&self) -> BinaryScannTraining
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 BinaryScannTraining
impl RefUnwindSafe for BinaryScannTraining
impl Send for BinaryScannTraining
impl Sync for BinaryScannTraining
impl Unpin for BinaryScannTraining
impl UnsafeUnpin for BinaryScannTraining
impl UnwindSafe for BinaryScannTraining
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> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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