Skip to content

Commit

Permalink
fix subset params (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxchan authored and guolinke committed Jul 7, 2017
1 parent f7d190a commit 43d5037
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,8 @@ def subset(self, used_indices, params=None):
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
Expand Down

0 comments on commit 43d5037

Please sign in to comment.