We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7e69c1 commit dbe2540Copy full SHA for dbe2540
src/tdamapper/_common.py
@@ -146,5 +146,7 @@ def clone(estimator):
146
:return: A new estimator with the same parameters.
147
:rtype: A scikit-learn compatible estimator
148
"""
149
- params = estimator.get_params(deep=False)
150
- return type(estimator)(**params)
+ params = estimator.get_params(deep=True)
+ cloned = type(estimator)()
151
+ cloned.set_params(**params)
152
+ return cloned
0 commit comments