From 4cb9795db934e34a345a20db9652d5b0217fdf03 Mon Sep 17 00:00:00 2001 From: AdilZouitine Date: Fri, 6 Oct 2023 00:09:49 +0200 Subject: [PATCH] fairer comparison --- python_baseline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python_baseline.py b/python_baseline.py index 7e50e4d..9f78906 100644 --- a/python_baseline.py +++ b/python_baseline.py @@ -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)