ML4ITS / mtad-gat-pytorch

PyTorch implementation of MTAD-GAT (Multivariate Time-Series Anomaly Detection via Graph Attention Networks) by Zhao et. al (2020, https://arxiv.org/abs/2009.02040).
MIT License
328 stars 76 forks source link

My understanding of mtad _ gat.py does not reflect the ' Multivariate Time-series ' in the title of the paper. #31

Closed yuanyuanyuantang closed 11 months ago

yuanyuanyuantang commented 1 year ago

The data x received by the forward ( ) function in mtad _ gat.py is in the shape of ( batch number, window, fearture number ), but on the feature number, only the data of the first column is not 0, and the data of the remaining columns are all 0. Isn 't that splicing all the dimensions of data into a long one-dimensional data ? image

khadijakhaldi commented 1 year ago

I believe that is one hot encoding of categorical features, thats why you see 0's

yuanyuanyuantang commented 1 year ago

thank you