From 7e1fc07aa71f301c9e250a5d55cf50b5968082b4 Mon Sep 17 00:00:00 2001 From: alibaltschun Date: Wed, 11 Sep 2019 20:33:15 +0700 Subject: [PATCH] remove double 'or' string in runtime error --- imblearn/over_sampling/_smote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imblearn/over_sampling/_smote.py b/imblearn/over_sampling/_smote.py index 905629de4..d9f44ed68 100644 --- a/imblearn/over_sampling/_smote.py +++ b/imblearn/over_sampling/_smote.py @@ -1290,7 +1290,7 @@ def _sample(self, X, y): if not valid_clusters: raise RuntimeError( "No clusters found with sufficient samples of " - "class {}. Try lowering the cluster_balance_threshold or " + "class {}. Try lowering the cluster_balance_threshold " "or increasing the number of " "clusters.".format(class_sample))