From d02b030248cfa119dcebc45f0749351959fd3730 Mon Sep 17 00:00:00 2001 From: "Alexander V. Hopp" Date: Tue, 10 Dec 2024 08:44:41 +0100 Subject: [PATCH] Return original series in transform if no bounds are present --- baybe/targets/numerical.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/baybe/targets/numerical.py b/baybe/targets/numerical.py index dc3fa84ff..b1375f900 100644 --- a/baybe/targets/numerical.py +++ b/baybe/targets/numerical.py @@ -155,6 +155,11 @@ def transform( assert isinstance(series, pd.Series) # <<<<<<<<<< Deprecation + # If no bounds are provided, then the transformation returns the original + # bounds + if not self.bounds.is_bounded: + return series.copy() + # When a transformation is specified, apply it if self.transformation is not None: func = _get_target_transformation(