README.md 626 Bytes
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
Binary Classification Example
2
3
=============================

Guolin Ke's avatar
Guolin Ke committed
4
5
Here is an example for LightGBM to run binary classification task.

6
7
***You must follow the [installation instructions](https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html)
for the following commands to work. The `lightgbm` binary must be built and available at the root of this project.***
Guolin Ke's avatar
Guolin Ke committed
8

9
10
Training
--------
Guolin Ke's avatar
Guolin Ke committed
11

12
Run the following command in this folder:
13

14
15
```bash
"../../lightgbm" config=train.conf
Guolin Ke's avatar
Guolin Ke committed
16
17
```

18
19
Prediction
----------
Guolin Ke's avatar
Guolin Ke committed
20
21
22

You should finish training first.

23
Run the following command in this folder:
24

25
26
```bash
"../../lightgbm" config=predict.conf
Guolin Ke's avatar
Guolin Ke committed
27
```