README.md 784 Bytes
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
LambdaRank Example
2
3
==================

Andrew Ziem's avatar
Andrew Ziem committed
4
Here is an example for LightGBM to run LambdaRank task.
Guolin Ke's avatar
Guolin Ke committed
5

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
```
28
29
30
31
32
33

Data Format
-----------

To learn more about the query format used in this example, check out the 
[query data format](https://lightgbm.readthedocs.io/en/latest/Parameters.html#query-data).