Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Nov 9, 2024
1 parent 6c4e974 commit 22b0e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skbase/base/_clone_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 22b0e64

Please sign in to comment.