Skip to content

Commit

Permalink
fairer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
AdilZouitine committed Oct 5, 2023
1 parent 9a5a2e5 commit 4cb9795
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from time import time

scores = []
start = time()
hst = anomaly.HalfSpaceTrees(
n_trees=50,
height=6,
window_size=1000,
)

for x, _ in datasets.CreditCard():
dataset = [x for x, _ in datasets.CreditCard()]
start = time()
for x in dataset:
score = hst.score_one(x)
scores.append(score)
hst.learn_one(x)
Expand Down

0 comments on commit 4cb9795

Please sign in to comment.