pub struct IvfOptions {
pub nlist: usize,
pub nprobe: usize,
pub training_samples: usize,
}Expand description
IVF build and query parameters.
Fields§
§nlist: usizeNumber of inverted lists (k-means centroids). Default 256. Must be >= 1.
nprobe: usizeNumber of lists to probe at query time. Default 8. Must be <= nlist.
training_samples: usizeCap on training samples drawn from the active delta for k-means. Default 256_000. Training cost is bounded by this value.
Trait Implementations§
Source§impl Clone for IvfOptions
impl Clone for IvfOptions
Source§fn clone(&self) -> IvfOptions
fn clone(&self) -> IvfOptions
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 moreSource§impl Debug for IvfOptions
impl Debug for IvfOptions
Source§impl Default for IvfOptions
impl Default for IvfOptions
Source§impl<'de> Deserialize<'de> for IvfOptions
impl<'de> Deserialize<'de> for IvfOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IvfOptions
Source§impl PartialEq for IvfOptions
impl PartialEq for IvfOptions
Source§impl Serialize for IvfOptions
impl Serialize for IvfOptions
impl StructuralPartialEq for IvfOptions
Auto Trait Implementations§
impl Freeze for IvfOptions
impl RefUnwindSafe for IvfOptions
impl Send for IvfOptions
impl Sync for IvfOptions
impl Unpin for IvfOptions
impl UnsafeUnpin for IvfOptions
impl UnwindSafe for IvfOptions
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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