"python-package/vscode:/vscode.git/clone" did not exist on "385540957102c218ae6f73bf5ad4b226e22bfe22"
Commit de0c1742 authored by Tsukasa OMOTO's avatar Tsukasa OMOTO Committed by Guolin Ke
Browse files

python: always assign best_score after train (#890)

This commit will regain backward compatibility that has been broken
after 015c8fff.
parent db8b6b00
...@@ -452,7 +452,8 @@ class LGBMModel(_LGBMModelBase): ...@@ -452,7 +452,8 @@ class LGBMModel(_LGBMModelBase):
if early_stopping_rounds is not None: if early_stopping_rounds is not None:
self._best_iteration = self._Booster.best_iteration self._best_iteration = self._Booster.best_iteration
self._best_score = self._Booster.best_score
self._best_score = self._Booster.best_score
# free dataset # free dataset
self.booster_.free_dataset() self.booster_.free_dataset()
......
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