Skip to content

Commit

Permalink
Remove class member initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
achirkin committed Mar 21, 2024
1 parent f755de7 commit 597e8e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cpp/include/cuvs/neighbors/cagra.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,31 @@ struct cuvsCagraCompressionParams {
* Hint: the smaller the 'pq_bits', the smaller the index size and the better the search
* performance, but the lower the recall.
*/
uint32_t pq_bits = 8;
uint32_t pq_bits;
/**
* The dimensionality of the vector after compression by PQ.
* When zero, an optimal value is selected using a heuristic.
*
* TODO: at the moment `dim` must be a multiple `pq_dim`.
*/
uint32_t pq_dim = 0;
uint32_t pq_dim;
/**
* Vector Quantization (VQ) codebook size - number of "coarse cluster centers".
* When zero, an optimal value is selected using a heuristic.
*/
uint32_t vq_n_centers = 0;
uint32_t vq_n_centers;
/** The number of iterations searching for kmeans centers (both VQ & PQ phases). */
uint32_t kmeans_n_iters = 25;
uint32_t kmeans_n_iters;
/**
* The fraction of data to use during iterative kmeans building (VQ phase).
* When zero, an optimal value is selected using a heuristic.
*/
double vq_kmeans_trainset_fraction = 0;
double vq_kmeans_trainset_fraction;
/**
* The fraction of data to use during iterative kmeans building (PQ phase).
* When zero, an optimal value is selected using a heuristic.
*/
double pq_kmeans_trainset_fraction = 0;
double pq_kmeans_trainset_fraction;
};

typedef struct cuvsCagraCompressionParams* cuvsCagraCompressionParams_t;
Expand Down

0 comments on commit 597e8e4

Please sign in to comment.