Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
311017ae
Unverified
Commit
311017ae
authored
Oct 27, 2021
by
Nikita Titov
Committed by
GitHub
Oct 27, 2021
Browse files
[python][sklearn] Allow non-serializable objects in callbacks argument (#4723)
parent
f6c55746
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+1
-1
No files found.
python-package/lightgbm/sklearn.py
View file @
311017ae
...
@@ -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
.
deep
copy
(
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. "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment