Skip to content

Commit 0891638

Browse files
committed
Restored start_iteration [skip ci]
1 parent e7548e3 commit 0891638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lightgbm/booster.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def predict(input, start_iteration: nil, num_iteration: nil, **params)
160160
singular = !input.first.is_a?(Array)
161161
input = [input] if singular
162162

163-
start_iteration = 0
163+
start_iteration ||= 0
164164
num_iteration ||= best_iteration
165165
num_class = self.num_class
166166

0 commit comments

Comments
 (0)