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

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

Open maikouSart opened 11 months ago

maikouSart commented 11 months 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)