README.md 656 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
6
7
Here is an example for LightGBM to run binary classification task.

***You should copy executable file to this folder first.***

8
9
Trainin
-------
Guolin Ke's avatar
Guolin Ke committed
10

11
12
For Windows, by running following command in this folder:

Guolin Ke's avatar
Guolin Ke committed
13
```
14
lightgbm.exe config=train.conf
Guolin Ke's avatar
Guolin Ke committed
15
16
```

17
For Linux, by running following command in this folder:
Guolin Ke's avatar
Guolin Ke committed
18
19

```
20
./lightgbm config=train.conf
Guolin Ke's avatar
Guolin Ke committed
21
22
```

23
24
Prediction
----------
Guolin Ke's avatar
Guolin Ke committed
25
26
27

You should finish training first.

28
29
For Windows, by running following command in this folder:

Guolin Ke's avatar
Guolin Ke committed
30
```
31
lightgbm.exe config=predict.conf
Guolin Ke's avatar
Guolin Ke committed
32
33
```

34
35
For Linux, by running following command in this folder:

Guolin Ke's avatar
Guolin Ke committed
36
```
37
./lightgbm config=predict.conf
Guolin Ke's avatar
Guolin Ke committed
38
```