pub struct BatchConfig {
pub batch: usize,
pub surface_points: Option<usize>,
pub queries: Option<usize>,
pub epochs: Option<usize>,
pub shuffle: bool,
pub seed: u64,
}Expand description
How a BatchStream is built.
Fields§
§batch: usize§surface_points: Option<usize>Surface points per example. None takes every one written.
queries: Option<usize>Distance queries per example. None takes every one written.
epochs: Option<usize>Passes over the corpus. None never stops.
shuffle: boolWhether each pass visits the examples in a fresh random order.
seed: u64Trait Implementations§
Auto Trait Implementations§
impl Forget for BatchConfig
impl Freeze for BatchConfig
impl Move for BatchConfig
impl RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnsafeUnpin for BatchConfig
impl UnwindSafe for BatchConfig
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