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
758 stars 199 forks source link

Hello, may I ask why the results of these two lines of code are the same in test mode? #49

Open maikouSart opened 1 year ago

maikouSart commented 1 year ago

Hello, may I ask why the results of these two lines of code are the same in test mode?

metric = torch.softmax((-series_loss - prior_loss), dim=-1)
metric = torch.softmax((series_loss + prior_loss), dim=-1)