Skip to content

Commit

Permalink
removes 'verbose' from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Nov 26, 2024
1 parent 2543684 commit 7a166d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down
2 changes: 1 addition & 1 deletion src/bin/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/bin/readme_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down

0 comments on commit 7a166d3

Please sign in to comment.