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
4af4698b
Unverified
Commit
4af4698b
authored
Jun 12, 2021
by
Nikita Titov
Committed by
GitHub
Jun 12, 2021
Browse files
[docs][python] enhance `keep_training_booster` param description (#4364)
parent
c3b9363d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+1
-0
No files found.
python-package/lightgbm/engine.py
View file @
4af4698b
...
@@ -128,6 +128,7 @@ def train(params, train_set, num_boost_round=100,
...
@@ -128,6 +128,7 @@ def train(params, train_set, num_boost_round=100,
keep_training_booster : bool, optional (default=False)
keep_training_booster : bool, optional (default=False)
Whether the returned Booster will be used to keep training.
Whether the returned Booster will be used to keep training.
If False, the returned value will be converted into _InnerPredictor before returning.
If False, the returned value will be converted into _InnerPredictor before returning.
This means you won't be able to use ``eval``, ``eval_train`` or ``eval_valid`` methods of the returned Booster.
When your model is very large and cause the memory error,
When your model is very large and cause the memory error,
you can try to set this param to ``True`` to avoid the model conversion performed during the internal call of ``model_to_string``.
you can try to set this param to ``True`` to avoid the model conversion performed during the internal call of ``model_to_string``.
You can still use _InnerPredictor as ``init_model`` for future continue training.
You can still use _InnerPredictor as ``init_model`` for future continue training.
...
...
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