Commit 36cf7e72 authored by Derek Xiao's avatar Derek Xiao Committed by Guolin Ke
Browse files

[python package] function get_leaf_output bugfixed (#717)

missing parameter "self" in signature of Booster.get_leaf_output
parent cf93bfa1
......@@ -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,
......
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