Skip to main content

optimize_lsh_params

Function optimize_lsh_params 

Source
pub fn optimize_lsh_params(
    signature_size: usize,
    target_threshold: f64,
) -> (usize, usize)
Expand description

Find the optimal LSH parameters for a given similarity threshold.

Returns (num_bands, rows_per_band) that maximizes the S-curve steepness around the threshold.