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
43d50370
Commit
43d50370
authored
Jul 07, 2017
by
wxchan
Committed by
Guolin Ke
Jul 07, 2017
Browse files
fix subset params (#676)
parent
f7d190aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+2
-0
No files found.
python-package/lightgbm/basic.py
View file @
43d50370
...
...
@@ -848,6 +848,8 @@ class Dataset(object):
params : dict
Other parameters
"""
if
params
is
None
:
params
=
self
.
params
ret
=
Dataset
(
None
,
reference
=
self
,
feature_name
=
self
.
feature_name
,
categorical_feature
=
self
.
categorical_feature
,
params
=
params
)
ret
.
_predictor
=
self
.
_predictor
...
...
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