diff --git a/python-package/lightgbm/callback.py b/python-package/lightgbm/callback.py index 40e3dc47f8dc..555822a40131 100644 --- a/python-package/lightgbm/callback.py +++ b/python-package/lightgbm/callback.py @@ -297,7 +297,7 @@ def _lt_delta(self, curr_score: float, best_score: float, delta: float) -> bool: return curr_score < best_score - delta def _is_train_set(self, ds_name: str, eval_name: str, env: CallbackEnv) -> bool: - """Check, by name, if a given Dataset is the training data""" + """Check, by name, if a given Dataset is the training data.""" # for lgb.cv() with eval_train_metric=True, evaluation is also done on the training set # and those metrics are considered for early stopping if ds_name == "cv_agg" and eval_name == "train":