@@ -44,17 +44,14 @@ def test_group_betas(self):
4444 self .assertTrue ((fake_betas [index ] - beta_clusters [c ][e ]).max () == 0 )
4545
4646 # verify different keyword combinations
47-
4847 for cluster_type in ClusterType .get_cluster_type_name ():
4948 for detector_type in DetectorType .get_detector_type_name ():
50-
5149 # As some clustering algorithms require parameters, we need to provide them
5250 # to avoid errors
5351 if cluster_type == "KMeans" or cluster_type == "SpectralClustering" :
5452 cluster_params = {"n_clusters" : 2 }
5553 else :
5654 cluster_params = {}
57-
5855 result = group_betas (
5956 fake_names ,
6057 fake_betas ,
@@ -65,15 +62,13 @@ def test_group_betas(self):
6562
6663 if isinstance (result , str ):
6764 self .fail (f"group_betas returned an error: { result } " )
68-
6965 beta_clusters , name_clusters = result
7066
7167 # verify correct output
7268 self .assertIsInstance (beta_clusters , list )
7369 self .assertIsInstance (name_clusters , list )
7470 self .assertEqual (len (beta_clusters ), len (name_clusters ))
7571
76-
7772 def test_group_betas_no_detector (self ):
7873 """tests correct function of the group_betas function
7974 in clustering_betas.py without an outlier detector"""
@@ -108,9 +103,7 @@ def test_group_betas_no_detector(self):
108103 self .assertTrue ((fake_betas [index ] - beta_clusters [c ][e ]).max () == 0 )
109104
110105 # verify different keyword combinations
111-
112106 for cluster_type in ClusterType .get_cluster_type_name ():
113-
114107 # As some clustering algorithms require parameters, we need to provide them
115108 # to avoid errors
116109 if cluster_type == "KMeans" or cluster_type == "SpectralClustering" :
0 commit comments