Commit 006391b9 authored by Guolin Ke's avatar Guolin Ke
Browse files

fix #138

parent da031707
...@@ -594,6 +594,8 @@ The methods of each Class is in alphabetical order. ...@@ -594,6 +594,8 @@ The methods of each Class is in alphabetical order.
Boosting learning rate Boosting learning rate
n_estimators : int n_estimators : int
Number of boosted trees to fit. Number of boosted trees to fit.
max_bin : int
Number of bucketed bin for feature values
silent : boolean silent : boolean
Whether to print messages while running boosting. Whether to print messages while running boosting.
objective : str or callable objective : str or callable
......
...@@ -155,6 +155,8 @@ class LGBMModel(LGBMModelBase): ...@@ -155,6 +155,8 @@ class LGBMModel(LGBMModelBase):
Boosting learning rate Boosting learning rate
n_estimators : int n_estimators : int
Number of boosted trees to fit. Number of boosted trees to fit.
max_bin : int
Number of bucketed bin for feature values
silent : boolean silent : boolean
Whether to print messages while running boosting. Whether to print messages while running boosting.
objective : string or callable objective : string or callable
...@@ -359,7 +361,7 @@ class LGBMModel(LGBMModelBase): ...@@ -359,7 +361,7 @@ class LGBMModel(LGBMModelBase):
feval = None feval = None
def _construct_dataset(X, y, sample_weight, init_score, group, params): def _construct_dataset(X, y, sample_weight, init_score, group, params):
ret = Dataset(X, label=y, weight=sample_weight, group=group, params=params) ret = Dataset(X, label=y, max_bin=self.max_bin, weight=sample_weight, group=group, params=params)
ret.set_init_score(init_score) ret.set_init_score(init_score)
return ret return ret
......
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