-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_deep_small.py
More file actions
34 lines (26 loc) · 860 Bytes
/
Copy pathconfig_deep_small.py
File metadata and controls
34 lines (26 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from numpy import float32
###
#
# BIGANN small test config! Run it on your personal machine like this:
# `python3 centroids.py config_bigann_small`
# `python3 shard.py config_bigann_small`
#
###
#Random seed for reproducibility of the kmeans clustering (set to None for non-determinism)
RANDOM_SEED=505
#Size of the sample of points examined for during clustering
SAMPLE_SIZE=100000
#Number of samples per batch
BATCH_SIZE=5000
#Number of centroids to find
S=100
#Maximum iterations of the kmeans clustering centroid fitter
MAX_ITER=25
#Maximum data points to index (set to None to index everything in the dataset file)
MAX_POINTS=20000
#Path to the datafiles
DATA_TYPE=float32
DATA_FILE="../data/deep1b/base.1B.fbin.crop_nb_10000000"
QUERY_FILE="../data/deep1b/query.public.10K.fbin"
#Path to the centroid index shard data
INDEX_PATH="../data/shards/"