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...");