Skip to content

Commit

Permalink
[python package] function get_leaf_output bugfixed (#717)
Browse files Browse the repository at this point in the history
missing parameter "self" in signature of Booster.get_leaf_output
  • Loading branch information
derek-xiao authored and guolinke committed Jul 21, 2017
1 parent cf93bfa commit 36cf7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ def predict(self, data, num_iteration=-1, raw_score=False, pred_leaf=False, data
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,
Expand Down

0 comments on commit 36cf7e7

Please sign in to comment.