Skip to content

Instantly share code, notes, and snippets.

@tclv
Created May 13, 2016 12:32
Show Gist options
  • Save tclv/720c8f5bfe5e0bbce37b748fb031d0d7 to your computer and use it in GitHub Desktop.
Save tclv/720c8f5bfe5e0bbce37b748fb031d0d7 to your computer and use it in GitHub Desktop.
diff = np.zeros((len(var),))
for i in range(len(var)):
assert len(test_outputs[i, :]) == window_size
(test_pass, no_diff) = testmod.kupiec(test_outputs[i, :], var[i])
diff[i] = no_diff
print(no_diff)
print("Mean diff {}".format(np.mean(np.abs(diff))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment