thuml / Anomaly-Transformer

About Code release for "Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancy" (ICLR 2022 Spotlight), https://openreview.net/forum?id=LzQQ89U1qm_
MIT License
668 stars 174 forks source link

Why combined energy is used to get a threshold? #39

Closed hcw-00 closed 1 year ago

hcw-00 commented 1 year ago

Hi. Thanks for your work. In the code, both train and test energy are used to get a threshold. Which seems different from the explanation of the paper, that is "The threshold δ is determined to make r proportion data of the validation dataset labeled as anomalies." I wonder why train data is included to get a threshold in the code. I'd really appreciate it if you answer.

hcw-00 commented 1 year ago

Close cause there are similar questions.