[][src]Struct hnsw::Params

pub struct Params { /* fields omitted */ }

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]

impl Copy for Params[src]

impl Debug for Params[src]

impl Default for Params[src]

impl<'de> Deserialize<'de> for Params[src]

impl Serialize for Params[src]

Auto Trait Implementations

impl RefUnwindSafe for Params

impl Send for Params

impl Sync for Params

impl Unpin for Params

impl UnwindSafe for Params

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.