README.md 614 Bytes
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
Regression Example
2
==================
Guolin Ke's avatar
Guolin Ke committed
3
4
5
6
7
8
Here is an example for LightGBM to run regression task.

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

#### Training

9
10
For Windows, by running following command in this folder:

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

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

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

#### Prediction

You should finish training first.

25
26
For Windows, by running following command in this folder:

Guolin Ke's avatar
Guolin Ke committed
27
```
28
lightgbm.exe config=predict.conf
Guolin Ke's avatar
Guolin Ke committed
29
30
```

31
32
For Linux, by running following command in this folder:

Guolin Ke's avatar
Guolin Ke committed
33
```
34
./lightgbm config=predict.conf
Guolin Ke's avatar
Guolin Ke committed
35
```