Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
2067bdc5
Unverified
Commit
2067bdc5
authored
Aug 27, 2021
by
Nikita Titov
Committed by
GitHub
Aug 27, 2021
Browse files
[docs][python] Improve description of `eval_result` argument in `record_evaluation()` (#4559)
* Update callback.py * Update engine.py
parent
8a07ed2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
python-package/lightgbm/callback.py
python-package/lightgbm/callback.py
+5
-3
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+1
-1
No files found.
python-package/lightgbm/callback.py
View file @
2067bdc5
...
...
@@ -78,7 +78,9 @@ def record_evaluation(eval_result: Dict[str, Dict[str, List[Any]]]) -> Callable:
Parameters
----------
eval_result : dict
A dictionary to store the evaluation results.
Dictionary used to store all evaluation results of all validation sets.
This should be initialized outside of your call to ``record_evaluation()`` and should be empty.
Any initial contents of the dictionary will be deleted.
Returns
-------
...
...
@@ -157,9 +159,9 @@ def early_stopping(stopping_rounds: int, first_metric_only: bool = False, verbos
Parameters
----------
stopping_rounds : int
The possible number of rounds without the trend occurrence.
The possible number of rounds without the trend occurrence.
first_metric_only : bool, optional (default=False)
Whether to use only the first metric for early stopping.
Whether to use only the first metric for early stopping.
verbose : bool, optional (default=True)
Whether to print message with early stopping information.
...
...
python-package/lightgbm/engine.py
View file @
2067bdc5
...
...
@@ -124,7 +124,7 @@ def train(
evals_result: dict or None, optional (default=None)
Dictionary used to store all evaluation results of all the items in ``valid_sets``.
This should be initialized outside of your call to ``train()`` and should be empty.
Any initial contents of the dictionary will be deleted
by ``train()``
.
Any initial contents of the dictionary will be deleted.
.. rubric:: Example
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment