Skip to content

Commit

Permalink
Change default threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
enp1s0 committed Feb 26, 2025
1 parent 11054f7 commit 36334a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/include/cuvs/preprocessing/quantize/binary.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct cuvsBinaryQuantizerParams {
/*
* specifies the threshold to set a bit in cuvsBinaryQuantizerTransform
*/
cuvsBinaryQuantizerThreshold threshold = ZERO;
cuvsBinaryQuantizerThreshold threshold = MEAN;

/*
* specifies the sampling ratio
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/cuvs/preprocessing/quantize/binary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ enum class set_bit_threshold { zero, mean, sampling_median };
* @brief quantizer parameters.
*/
struct params {
set_bit_threshold threshold = set_bit_threshold::zero;
set_bit_threshold threshold = set_bit_threshold::mean;

float sampling_ratio = 0.1;
};
Expand Down

0 comments on commit 36334a5

Please sign in to comment.