Commit d56df385 authored by Yuncong Yu's avatar Yuncong Yu
Browse files

Bugfix: file path incorrect.

parent 33ced1b8
......@@ -16,7 +16,7 @@ def get_lsh_parameters(data, window_size):
"""
data: 3d array [m][t][d]
"""
if (not os.path.isfile('cache/parameters-' + str(window_size) + '.npy')):
if (not os.path.isfile('cache/parameters_' + str(window_size) + '.npy')):
parameters = preprocess(data)
np.save('cache/parameters_' + str(window_size), [float(parameters[0]), float(parameters[1]), float(parameters[2])])
return np.load('cache/parameters_' + str(window_size) + '.npy').tolist()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment