[−][src]Struct hnsw::Params
Methods
impl Params
[src]
pub fn new() -> Self
[src]
pub fn ef_construction(self, ef_construction: usize) -> Self
[src]
This is refered to as efConstruction
in the paper. This is equivalent to the ef
parameter passed
to nearest
, but it is the ef
used when inserting elements. The higher this is, the more likely the
nearest neighbors in each graph level will be correct, leading to a higher recall rate and speed when
calling nearest
. This parameter greatly affects the speed of insertion into the HNSW.
This parameter is probably the only one that in important to tweak.
Defaults to 400
(overkill for most tasks, but only lower after profiling).
Trait Implementations
impl Clone for Params
[src]
fn clone(&self) -> Params
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Params
[src]
impl Copy for Params
[src]
impl Debug for Params
[src]
Auto Trait Implementations
impl Unpin for Params
impl Sync for Params
impl Send for Params
impl UnwindSafe for Params
impl RefUnwindSafe for Params
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> FromCast<T> for T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self