From 24526bda4cdd00ee8d41ddc3eecd7e1c43048a9e Mon Sep 17 00:00:00 2001 From: rmeng Date: Wed, 15 May 2024 13:44:27 -0400 Subject: [PATCH] patch --- rust/lancedb/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rust/lancedb/src/lib.rs b/rust/lancedb/src/lib.rs index 2b2d9469..01b3aeb3 100644 --- a/rust/lancedb/src/lib.rs +++ b/rust/lancedb/src/lib.rs @@ -238,9 +238,6 @@ pub enum DistanceType { /// distance has a range of (-∞, ∞). If the vectors are normalized (i.e. their /// L2 norm is 1), then dot distance is equivalent to the cosine distance. Dot, - /// Hamming distance. Hamming distance is a distance metric that measures - /// the number of positions at which the corresponding elements are different. - Hamming, } impl From for LanceDistanceType { @@ -249,7 +246,6 @@ impl From for LanceDistanceType { DistanceType::L2 => Self::L2, DistanceType::Cosine => Self::Cosine, DistanceType::Dot => Self::Dot, - DistanceType::Hamming => Self::Hamming, } } } @@ -260,7 +256,6 @@ impl From for DistanceType { LanceDistanceType::L2 => Self::L2, LanceDistanceType::Cosine => Self::Cosine, LanceDistanceType::Dot => Self::Dot, - LanceDistanceType::Hamming => Self::Hamming, } } }