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
36cf7e72
Commit
36cf7e72
authored
Jul 21, 2017
by
Derek Xiao
Committed by
Guolin Ke
Jul 21, 2017
Browse files
[python package] function get_leaf_output bugfixed (#717)
missing parameter "self" in signature of Booster.get_leaf_output
parent
cf93bfa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
No files found.
python-package/lightgbm/basic.py
View file @
36cf7e72
...
...
@@ -1618,7 +1618,7 @@ class Booster(object):
num_iteration
=
self
.
best_iteration
return
predictor
.
predict
(
data
,
num_iteration
,
raw_score
,
pred_leaf
,
data_has_header
,
is_reshape
)
def
get_leaf_output
(
tree_id
,
leaf_id
):
def
get_leaf_output
(
self
,
tree_id
,
leaf_id
):
ret
=
ctypes
.
c_double
(
0
)
_safe_call
(
_LIB
.
LGBM_BoosterGetLeafValue
(
self
.
handle
,
...
...
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