numpy.core._exceptions.UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('int64'), dtype('<U1')) -> None
baoyixin opened this issue · 4 comments
Hi, thank you for sharing your excellent work!
After preprocessing the WADI dataset, I encountered the following error when running the run.py file.
I've identified the issue at this line: early = early_detection_evaluation(labels, indicator, args.delays). However, I'm unsure how to fix it and would sincerely appreciate your guidance. Thank you!
I believe this is due to the parallel processing that we used - some experienced the same issue when implemented in practical scenarios.
One way to resolve the issue is to (1) not do early detection evaluation or (2) adjust the code to run without parallel processing (e.g., a simple loop)
For SWaT dataset, we follow the same procedure as we did in WaDI. However, in this case you don't need to add the time of attack (i.e., the anomaly labels) just as we showed them in the notebook. This is because the labels are already provided in the original dataset, so we used them as is. Running through the notebook with a few adaptation to SWaT dataset, you should get the same pre-processed dataset as GDN (https://github.com/d-ailin/GDN). So you can adjust the interactive notebook we provided that is easier to read or simply use the script provided in GDN repo.