Removed some non-PEP-8-recommended whitespace
I was using pylint as a sanity checker when splitting up main.py, and using
it more often -- and fixing the things it complains about -- seems like a
good idea
@@ -46,8 +46,7 @@ ds_finishers = {
'float': numpy.vstack
}
-def get_dataset(which = 'glove',
- limit = -1, random_state = 3, test_size = 10000):
+def get_dataset(which='glove', limit=-1, random_state=3, test_size=10000):
cache = 'queries/%s-%d-%d-%d.npz' % (which, test_size, limit, random_state)
if os.path.exists(cache):
v = numpy.load(cache)
@@ -337,8 +336,7 @@ def main():
# Spawn a subprocess to force the memory to be reclaimed at the end
p = multiprocessing.Process(
target=run_algo,
- args =
- (X_train, queries, library, algo, args.distance, results_fn))
+ args=(X_train, queries, library, algo, args.distance, results_fn))
p.start()
p.join()
