TranAD icon indicating copy to clipboard operation
TranAD copied to clipboard

About SWaT dataset test time is too long, can not produce results, what should I do

Open eventhorizon7 opened this issue 3 years ago • 11 comments

eventhorizon7 avatar Sep 17 '22 03:09 eventhorizon7

I use CPU : 14 cores RAM: 160 GB GPU: NVIDIA GeForce RTX 3090

but image

eventhorizon7 avatar Sep 17 '22 07:09 eventhorizon7

It seems like there is some issue with your system or pytorch installation as 3000+ seconds for training is too high.

shreshthtuli avatar Sep 18 '22 13:09 shreshthtuli

When my cpu is R7 5800 one epoch time is 400+ seconds , because I can't use gpu, how should I solve the problem that I can't test on SWaT dataset?

eventhorizon7 avatar Sep 19 '22 03:09 eventhorizon7

I seem to have found the problem here in pot_eval. image image It keeps looping here, how do I fix it?

eventhorizon7 avatar Sep 19 '22 09:09 eventhorizon7

lms becomes very large during the loop

eventhorizon7 avatar Sep 19 '22 10:09 eventhorizon7

I compared your code with the POT in OmniAnomaly and found that you have an extra parameter of lm, what does this parameter do?

eventhorizon7 avatar Sep 19 '22 10:09 eventhorizon7

I made the mistake of being lms getting smaller and smaller and can't get out in the loop

eventhorizon7 avatar Sep 20 '22 00:09 eventhorizon7

	result, pred = pot_eval(lt, l, ls); preds.append(pred)

I found that in this line, when i is at a certain value, the values of lt and l are all 0, resulting in an infinite loop.

eventhorizon7 avatar Sep 20 '22 09:09 eventhorizon7

When I remove this part of the code, the result I get is {'FN': 5178, 'FP': 253109, 'Hit@100%': 1.0, 'Hit@150%': 1.0, 'NDCG@100%': 1.0, 'NDCG@150%': 1.0, 'ROC/AUC': 0.6324510394527012, 'TN': 142189, 'TP': 49443, 'f1': 0.2768548424500904, 'precision': 0.1634198418730195, 'recall': 0.9052012960390323, 'threshold': 0.5505070690110198}

eventhorizon7 avatar Sep 20 '22 12:09 eventhorizon7

安装似乎存在一些问题,因为 3000+ 秒的训练

Hello, I have encountered a similar problem. How do you solve this problem?

JC0624 avatar Nov 09 '22 04:11 JC0624