Unverified Commit 311017ae authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[python][sklearn] Allow non-serializable objects in callbacks argument (#4723)

parent f6c55746
...@@ -730,7 +730,7 @@ class LGBMModel(_LGBMModelBase): ...@@ -730,7 +730,7 @@ class LGBMModel(_LGBMModelBase):
if callbacks is None: if callbacks is None:
callbacks = [] callbacks = []
else: else:
callbacks = copy.deepcopy(callbacks) callbacks = copy.copy(callbacks) # don't use deepcopy here to allow non-serializable objects
if verbose != 'warn': if verbose != 'warn':
_log_warning("'verbose' argument is deprecated and will be removed in a future release of LightGBM. " _log_warning("'verbose' argument is deprecated and will be removed in a future release of LightGBM. "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment