This is a quick start guide for LightGBM CLI version.
Follow the Installation Guide to install LightGBM first.
List of other helpful links
Training Data Format¶
Files could be both with and without headers.
Label column could be specified both by index and by name.
Some columns could be ignored.
Categorical Feature Support¶
LightGBM can use categorical features directly (without one-hot encoding). The experiment on Expo data shows about 8x speed-up compared with one-hot encoding.
For the setting details, please refer to Parameters.
Parameters Quick Look¶
The parameters format is
key1=value1 key2=value2 ....
Parameters can be set both in config file and command line. If one parameter appears in both command line and config file, LightGBM will use the parameter from the command line.
The most important parameters which new users should take a look to are located into Core Parameters and the top of Learning Control Parameters sections of the full detailed list of LightGBM’s parameters.
lightgbm.exe config=your_config_file other_args ...
./lightgbm config=your_config_file other_args ...
Parameters can be set both in config file and command line, and the parameters in command line have higher priority than in config file.
For example, following command line will keep
num_trees=10 and ignore the same parameter in config file.
./lightgbm config=train.conf num_trees=10