From 9d79ae1100be890142a6bcc638ef9ae51aa9b237 Mon Sep 17 00:00:00 2001 From: John Bogaardt Date: Thu, 30 Jan 2020 12:11:10 -0700 Subject: [PATCH] predict error in pipeline --- chainladder/workflow/gridsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainladder/workflow/gridsearch.py b/chainladder/workflow/gridsearch.py index 01d807aa..9d498a5b 100644 --- a/chainladder/workflow/gridsearch.py +++ b/chainladder/workflow/gridsearch.py @@ -135,7 +135,7 @@ def predict(self, X, sample_weight=None): if sample_weight: fit_params = {} if not fit_params else fit_params fit_params[self.steps[-1][0] + '__sample_weight'] = sample_weight - return super().predict(X, y, **fit_params) + return super().predict(X, **fit_params) def to_json(self):