Skip to content

Commit

Permalink
fix bugs in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhongzuo committed Nov 10, 2023
1 parent 06d7562 commit 5e7a076
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions deepod/metrics/vus/analysis/score_computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import numpy as np
import math
import pandas as pd
from tqdm import tqdm as tqdm
import time
from sklearn.preprocessing import MinMaxScaler
import random


import os
Expand Down
3 changes: 1 addition & 2 deletions deepod/metrics/vus/utils/slidingWindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ def find_length(data):

base = 3
auto_corr = acf(data, nlags=400, fft=True)[base:]



local_max = argrelextrema(auto_corr, np.greater)[0]
try:
max_local_max = np.argmax([auto_corr[lcm] for lcm in local_max])
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ torch>=1.10.0,<1.13.1
tqdm>=4.62.3
ray==2.6.1
pyarrow>=11.0.0
einops
einops
statsmodel

0 comments on commit 5e7a076

Please sign in to comment.