-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_pickle.UnpicklingError: could not find MARK #12
Comments
Have you found a solution? I used the sample dataset from |
Have you found a solution? |
Has a solution been found to this issue? |
I dont know why the authors use pickle to read data, but my method works well by changing pickle to pandas. def get_score(data_source, files, thres, option):
total_time = 0
results = []
savedscore = []
for f in files:
print('reading', f)
data = pd.read_csv(f)
in_timestamp, in_value, in_label = data['timestamp'].values, data['value'].values, data['label'].values
length = len(in_timestamp)
if model == 'sr_cnn' and len(in_value) < window:
print("length is shorter than win_size", len(in_value), window)
continue
time_start = time.time()
timestamp, label, pre, scores = models[model](in_timestamp, in_value, in_label, window, net, option, thres)
time_end = time.time()
total_time += time_end - time_start
results.append([timestamp, label, pre, f])
savedscore.append([label, scores, f, timestamp])
return total_time, results, savedscore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
File "evalue.py", line 121, in
total_time, results, savedscore = get_score(data_source, files, args.thres, args.missing_option)
File "evalue.py", line 74, in get_score
tmp_data = read_pkl(f)
File "C:\anomalydetector-master\anomalydetector-master\srcnn\utils.py", line 47, in read_pkl
def read_pkl(path):
with open(path, 'rb') as f:
return pickle.load(f)#this is where it throws error
The text was updated successfully, but these errors were encountered: