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
006391b9
Commit
006391b9
authored
Dec 21, 2016
by
Guolin Ke
Browse files
fix #138
parent
da031707
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
docs/Python-API.md
docs/Python-API.md
+2
-0
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+3
-1
No files found.
docs/Python-API.md
View file @
006391b9
...
@@ -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
...
...
python-package/lightgbm/sklearn.py
View file @
006391b9
...
@@ -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
...
...
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