I run the code but the execution error is occured. Could you help me?
PS D:\deep_learning\anomaly_detection> python main.py --model USAD --action train
C:\miniconda3\envs\yolov5\lib\site-packages\statsmodels\tools_testing.py:19: FutureWarning: pandas.util.testing is deprecated. Use the fun
ctions in the public API at pandas.testing instead.
import pandas.util.testing as tm
D:\deep_learning\anomaly_detection\dataPreprocessing.py:111: DtypeWarning: Columns (6,26,28,36,38,39,40,45,46,47) have mixed types.Specify
dtype option on import or set low_memory=False.
origin_normal, origin_attack, labels = self.SWAT_loadData(normal_data_path, attack_data_path)
normal data.shape (495000, 51)
data info
number of anomaly : 54621
number of normal : 395298
################
windows_normal.shape (494989, 12, 51)
window_attack.shape (449908, 12, 51)
w_size 612
z_size 480
self.train_loader <torch.utils.data.dataloader.DataLoader object at 0x00000156D30B19C8>
self.val_loader <torch.utils.data.dataloader.DataLoader object at 0x000001568A74FC08>
Traceback (most recent call last):
File "main.py", line 154, in
executionObj.train(args.model)
File "main.py", line 91, in train history = self.model.training_all(self, n_epochs, self.train_loader, self.val_loader)
File "D:\deep_learning\anomaly_detection\model.py", line 197, in training_all
for epoch in range(epochs): TypeError: 'execution' object cannot be interpreted as an integer
Thank you for your git project.
I run the code but the execution error is occured. Could you help me?
PS D:\deep_learning\anomaly_detection> python main.py --model USAD --action train C:\miniconda3\envs\yolov5\lib\site-packages\statsmodels\tools_testing.py:19: FutureWarning: pandas.util.testing is deprecated. Use the fun ctions in the public API at pandas.testing instead. import pandas.util.testing as tm D:\deep_learning\anomaly_detection\dataPreprocessing.py:111: DtypeWarning: Columns (6,26,28,36,38,39,40,45,46,47) have mixed types.Specify dtype option on import or set low_memory=False. origin_normal, origin_attack, labels = self.SWAT_loadData(normal_data_path, attack_data_path) normal data.shape (495000, 51)
data info
number of anomaly : 54621 number of normal : 395298 ################
windows_normal.shape (494989, 12, 51) window_attack.shape (449908, 12, 51) w_size 612
z_size 480
self.train_loader <torch.utils.data.dataloader.DataLoader object at 0x00000156D30B19C8>
self.val_loader <torch.utils.data.dataloader.DataLoader object at 0x000001568A74FC08>
Traceback (most recent call last): File "main.py", line 154, in
executionObj.train(args.model) File "main.py", line 91, in train
history = self.model.training_all(self, n_epochs, self.train_loader, self.val_loader) File "D:\deep_learning\anomaly_detection\model.py", line 197, in training_all for epoch in range(epochs):
TypeError: 'execution' object cannot be interpreted as an integer