The implement of Hybrid Adaptive Self-Attention coupled with Differential Excitation for Time Series Anomaly Detection.
==========================================================
The code will be released after the paper is received.
==========================================================
None
To clone this repo:
git clone https://github.com/qiumiao30/Hasaformer.git && cd Hasaformer
- SWaT & WaDI: Dataset Download, Dataset Introduce
- PSM: Dataset Download and Introduction
- SMD: Dataset Download and Introduction
- python>=3.7
- torch>=1.9
pip install -r requirements.txt
python data_preprocess.py --dataset $dataset_name$
$dataset$
is one of SWAT, WaDI, SMD, PSM et al.
for example:
python data_preprocess.py --dataset swat
- --dataset : default "swat".
- --lookback : Windows size, default 10.
- --normalize : Whether to normalize, default True.
- --epochs : default 10
- --bs : Batch Size, default 256
- --init_lr : init learning rate, default 1e-3
- --val_split : val dataset, default 0.1
- --dropout : 0.3
python train.py --Params "value" --Parmas "value" ......