From 7a166d34d8e206f733920842565a9a24fe450cde Mon Sep 17 00:00:00 2001 From: Michele Riva Date: Tue, 26 Nov 2024 14:13:01 +0100 Subject: [PATCH] removes 'verbose' from examples --- README.md | 2 +- src/bin/example.rs | 2 +- src/bin/readme_example.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b8a70ec..0218583 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ fn main() -> Result<()> { // Configure PQ parameters let m = 8; // Number of subspaces (controls compression ratio) let ks = 256; // Number of centroids per subspace (usually 256 for uint8) - let mut pq = PQ::try_new(m, ks, Some(true))?; + let mut pq = PQ::try_new(m, ks)?; // Train the quantizer on the data println!("Training PQ model..."); diff --git a/src/bin/example.rs b/src/bin/example.rs index c1ac462..ba543f1 100644 --- a/src/bin/example.rs +++ b/src/bin/example.rs @@ -31,7 +31,7 @@ fn main() -> Result<()> { let ks = 256; // Number of clusters per subspace let verbose = Some(true); - let mut pq = PQ::try_new(m, ks, verbose)?; + let mut pq = PQ::try_new(m, ks)?; // Step 3: Train the PQ Model let iterations = 20; // Number of iterations for k-means diff --git a/src/bin/readme_example.rs b/src/bin/readme_example.rs index f0f2409..90f8b4a 100644 --- a/src/bin/readme_example.rs +++ b/src/bin/readme_example.rs @@ -13,7 +13,7 @@ fn main() -> Result<()> { // Configure PQ parameters let m = 8; // Number of subspaces (controls compression ratio) let ks = 256; // Number of centroids per subspace (usually 256 for uint8) - let mut pq = PQ::try_new(m, ks, Some(true))?; + let mut pq = PQ::try_new(m, ks)?; // Train the quantizer on the data println!("Training PQ model...");