Skip to content
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

Error in data preprocessing #71

Open
root4399 opened this issue Jun 12, 2023 · 0 comments
Open

Error in data preprocessing #71

root4399 opened this issue Jun 12, 2023 · 0 comments

Comments

@root4399
Copy link

Hello,
I am very impressed by your work, and am trying to start my anomaly detection research based off of your work.

The first thing I am trying to do is to reproduce the results for the SWaT dataset given in Table 2.
I followed the exact step that you provided in scripts/readme.md for SWaT preprocessing and error occurred:

Traceback (most recent call last):
File "e:\backup\GDN-main\scripts\process_swat.py", line 101, in
main()
File "e:\backup\GDN-main\scripts\process_swat.py", line 78, in main
d_test_x, d_test_labels = downsample(test.values, test_labels, 10)
File "e:\backup\GDN-main\scripts\process_swat.py", line 32, in downsample
d_labels = np.round(np.max(d_labels, axis=1))
File "<array_function internals>", line 5, in amax
File "E:\anaconda3\lib\site-packages\numpy\core\fromnumeric.py", line 2667, in amax
return _wrapreduction(a, np.maximum, 'max', axis, None, out,
File "E:\anaconda3\lib\site-packages\numpy\core\fromnumeric.py", line 90, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
TypeError: '>=' not supported between instances of 'str' and 'int'

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant