zhhlee / InterFusion

KDD 2021: Multivariate Time Series Anomaly Detection and Interpretation using Hierarchical Inter-Metric and Temporal Embedding
MIT License
195 stars 46 forks source link

window_length cannot be set to other values #14

Closed JinYang88 closed 2 years ago

JinYang88 commented 2 years ago

In the class of ModelConfig, when I change the window_length to other values, say, 32, the stack_train.py will throw error. I vary the window_length several times, it does not work.

Do you have any idea about this issue? Thanks!

zhhlee commented 2 years ago

There are several conv1D & deconv1D layers in the model to derive hidden variable z2. When you change the window_length, the output_shape and z2_dim parameters should be changed accordingly (you may also change the number of conv layers and kernel size, strides if you want). The detailed implementations are in InterFusion.py (or InterFusion_swat.py).