Skip to content
Snippets Groups Projects
Commit d8930a4e authored by Pierre LOTTE's avatar Pierre LOTTE
Browse files

Fix bug in results computation

parent 3baacb5a
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ class ROCResults(BaseResults):
y_pred_path = f"{self.path}/{config_name}/results_{algo}/anomaly_scores_dataset_{algo}.ts"
roc, f1 = self.__compute_score(labels, y_pred_path)
if algo in self.result["roc"]:
if algo in self.result:
self.result[algo][config_name] = {"classic": {"roc": round(roc, 4), "f1": round(f1, 4)}}
else:
self.result[algo] = {config_name: {"classic": {"roc": round(roc, 4), "f1": round(f1, 4)}}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment