Made the num_probes argument to the FALCONN wrapper optional
All of the instantiations of FALCONN have identical values for num_probes
and num_tables, and adding backrefs will make the new configuration file
code even more complicated
@@ -170,7 +170,9 @@ class Subprocess(BaseANN):
self._program.terminate()
class FALCONN(BaseANN):
- def __init__(self, metric, num_bits, num_tables, num_probes):
+ def __init__(self, metric, num_bits, num_tables, num_probes = None):
+ if not num_probes:
+ num_probes = num_tables
self.name = 'FALCONN(K={}, L={}, T={})'.format(num_bits, num_tables, num_probes)
self._metric = metric
self._num_bits = num_bits
