From 111279d813efb0583cb3c96b10d3b5bec5779540 Mon Sep 17 00:00:00 2001 From: mandjevant <38689620+mandjevant@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:53:42 +0100 Subject: [PATCH] Fix decorator typo GBR --- hpsklearn/components/ensemble/_gb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpsklearn/components/ensemble/_gb.py b/hpsklearn/components/ensemble/_gb.py index 4dc14035..3ab7742d 100644 --- a/hpsklearn/components/ensemble/_gb.py +++ b/hpsklearn/components/ensemble/_gb.py @@ -240,7 +240,7 @@ def _name(msg): msg="Invalid parameter '%s' with value '%s'. Parameter value must be within [0.0, 1.0]") @validate(params=["loss"], validation_test=lambda param: not isinstance(param, str) or param in ("squared_error", "absolute_error", - "huber" or "quantile"), + "huber", "quantile"), msg="Invalid parameter '%s' with value '%s'. " "Choose 'squared_error', 'absolute_error', 'huber' or 'quantile'.") def gradient_boosting_regressor(name: str,