Commit 43d50370 authored by wxchan's avatar wxchan Committed by Guolin Ke
Browse files

fix subset params (#676)

parent f7d190aa
...@@ -848,6 +848,8 @@ class Dataset(object): ...@@ -848,6 +848,8 @@ class Dataset(object):
params : dict params : dict
Other parameters Other parameters
""" """
if params is None:
params = self.params
ret = Dataset(None, reference=self, feature_name=self.feature_name, ret = Dataset(None, reference=self, feature_name=self.feature_name,
categorical_feature=self.categorical_feature, params=params) categorical_feature=self.categorical_feature, params=params)
ret._predictor = self._predictor ret._predictor = self._predictor
......
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