Struct hnsw::Params [−][src]
pub struct Params { /* fields omitted */ }
Implementations
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
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
Auto Trait Implementations
impl RefUnwindSafe for Params
impl UnwindSafe for Params
Blanket Implementations
Mutably borrows from an owned value. Read more