From 82dadd5426305c178c1c0cb427a60b2289911266 Mon Sep 17 00:00:00 2001 From: Programmeurke Date: Tue, 4 Dec 2018 23:40:49 +0100 Subject: [PATCH] Update woe.py --- woe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woe.py b/woe.py index c4a4c98..a1e6733 100644 --- a/woe.py +++ b/woe.py @@ -62,7 +62,7 @@ def fit(self, x, y): if not isinstance(y, pd.Series): y = pd.Series(y) if not x.size == y.size: - raise Exception("Y size don't match Y size") + raise Exception("X size doesn't match Y size") # Calc total good bad ratio in the sample t_bad = np.sum(y) if t_bad == 0 or t_bad == y.size: