diff --git a/skbase/base/_clone_plugins.py b/skbase/base/_clone_plugins.py index d05df1a0..0596f304 100644 --- a/skbase/base/_clone_plugins.py +++ b/skbase/base/_clone_plugins.py @@ -143,7 +143,7 @@ def _check(self, obj): def _clone(self, obj): """Return a clone of obj.""" - new_object = _default_clone(estimator=obj) + new_object = _default_clone(estimator=obj, recursive_clone=self.recursive_clone) # Ensure that configs are retained in the new object if obj.get_config()["clone_config"]: @@ -179,7 +179,7 @@ def _check(self, obj): def _clone(self, obj): """Return a clone of obj.""" - return _default_clone(estimator=obj) + return _default_clone(estimator=obj, recursive_clone=self.recursive_clone) class _CloneCatchAll(BaseCloner):