From 0ecd293d84de920b3e4d18ccdfd9c3e1d76acf08 Mon Sep 17 00:00:00 2001 From: miaohancheng Date: Wed, 13 Nov 2024 14:25:56 +0800 Subject: [PATCH] fix output bug --- pysmatch/Matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysmatch/Matcher.py b/pysmatch/Matcher.py index 6c0e196..d6f41d2 100644 --- a/pysmatch/Matcher.py +++ b/pysmatch/Matcher.py @@ -152,7 +152,7 @@ def fit_scores(self, balance=True, nmodels=None, n_jobs=1, model_type='linear'): for res in results: self.models.append(res['model']) self.model_accuracy.append(res['accuracy']) - logging.info(f"Average Accuracy:{round(np.mean((self.model_accuracy) * 100),2)}% ") + logging.info(f"Average Accuracy:{np.mean(self.model_accuracy):.2%} ") else: result = self.fit_model(0, self.X, self.y, self.model_type, balance) self.models.append(result['model'])