Skip to content

Commit

Permalink
recover testing file for dpad
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-yu-wang committed Jun 12, 2024
1 parent ef51eb9 commit 6bd45b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/anomaly/test_dpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from merlion.transform.resample import Shingle, TemporalResample
from merlion.transform.sequence import TransformSequence
from merlion.utils import TimeSeries
from merlion.post_process.threshold import AdaptiveAggregateAlarms

rootdir = dirname(dirname(dirname(abspath(__file__))))
logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -50,12 +49,12 @@ def __init__(self, *args, **kwargs):
DeepPointAnomalyDetectorConfig(
transform=TransformSequence(
[TemporalResample("15min"), Shingle(size=3, stride=2), DifferenceTransform()]
),
threshold = AdaptiveAggregateAlarms(0.0001)
)
)
)

def test_full(self):

# score function returns the raw anomaly scores
print("-" * 80)
logger.info("test_full\n" + "-" * 80 + "\n")
Expand Down

0 comments on commit 6bd45b2

Please sign in to comment.