From 2caae0e19836565b8d48082861a8fc923afb1e7e Mon Sep 17 00:00:00 2001 From: frankknoll Date: Thu, 16 Nov 2023 15:41:28 +0100 Subject: [PATCH] refactoring --- .../MultiLineFitting/ClustersFactory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SymptomsCausedByVaccines/MultiLineFitting/ClustersFactory.py b/src/SymptomsCausedByVaccines/MultiLineFitting/ClustersFactory.py index de9889fe8f4..d0ace9f82f3 100644 --- a/src/SymptomsCausedByVaccines/MultiLineFitting/ClustersFactory.py +++ b/src/SymptomsCausedByVaccines/MultiLineFitting/ClustersFactory.py @@ -42,7 +42,7 @@ class ClustersFactory: return clusters @staticmethod - def _intersectionOverUnion(set_a, set_b): - intersection = np.count_nonzero(np.logical_and(set_a, set_b)) - union = np.count_nonzero(np.logical_or(set_a, set_b)) + def _intersectionOverUnion(setA, setB): + intersection = np.count_nonzero(np.logical_and(setA, setB)) + union = np.count_nonzero(np.logical_or(setA, setB)) return 1. * intersection / union