Skip to content

Commit

Permalink
[python][sklearn] Allow non-serializable objects in callbacks argument (
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed Oct 27, 2021
1 parent f6c5574 commit 311017a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/sklearn.py
Expand Up @@ -730,7 +730,7 @@ def _get_meta_data(collection, name, i):
if callbacks is None:
callbacks = []
else:
callbacks = copy.deepcopy(callbacks)
callbacks = copy.copy(callbacks) # don't use deepcopy here to allow non-serializable objects

if verbose != 'warn':
_log_warning("'verbose' argument is deprecated and will be removed in a future release of LightGBM. "
Expand Down

0 comments on commit 311017a

Please sign in to comment.