getLGBMThreads {lightgbm} | R Documentation |
Get default number of threads used by LightGBM
Description
LightGBM attempts to speed up many operations by using multi-threading.
The number of threads used in those operations can be controlled via the
num_threads
parameter passed through params
to functions like
lgb.train and lgb.Dataset. However, some operations (like materializing
a model from a text file) are done via code paths that don't explicitly accept thread-control
configuration.
Use this function to see the default number of threads LightGBM will use for such operations.
Usage
getLGBMthreads()
Value
number of threads as an integer. -1
means that in situations where parameter num_threads
is
not explicitly supplied, LightGBM will choose a number of threads to use automatically.
See Also
[Package lightgbm version 4.5.0 Index]