d-ailin / GDN

Implementation code for the paper "Graph Neural Network-Based Anomaly Detection in Multivariate Time Series" (AAAI 2021)
MIT License
482 stars 141 forks source link

The question about formulas (5) to formulas (8)? #48

Open yangfan12311 opened 2 years ago

yangfan12311 commented 2 years ago

Thank you so much for being able to open source the code! Which lines of code correspond to formulas 5 to 8? I really don't understand how the attention mechanism is added to the model.

d-ailin commented 2 years ago

I think most of the formulas you mentioned are implemented inside this function: https://github.com/d-ailin/GDN/blob/9853899da860682669a134e4af315d036aab4eca/models/graph_layer.py#L82 Some of the formulas might be coupled in the implementation, so you could refer to more detail in the whole function. Thanks.