README.md 779 Bytes
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
Parallel Learning Example
2
=========================
Guolin Ke's avatar
Guolin Ke committed
3
4
Here is an example for LightGBM to perform parallel learning for 2 machines.

5
1. Edit mlist.txt, write the ip of these 2 machines that you want to run application on.
Guolin Ke's avatar
Guolin Ke committed
6
7
8
9
10

  ```
  machine1_ip 12400
  machine2_ip 12400
  ```
11

Guolin Ke's avatar
Guolin Ke committed
12
2. Copy this folder and executable file to these 2 machines that you want to run application on.
13

Guolin Ke's avatar
Guolin Ke committed
14
15
3. Run command in this folder on both 2 machines:

16
17
18
   For Windows: ```lightgbm.exe config=train.conf```

   For Linux: ```./lightgbm config=train.conf```
Guolin Ke's avatar
Guolin Ke committed
19
20
21

This parallel learning example is based on socket. LightGBM also support parallel learning based on mpi.

Guolin Ke's avatar
Guolin Ke committed
22
For more details about the usage of parallel learning, please refer to [this](https://github.com/Microsoft/LightGBM/wiki/Parallel-Learning-Guide).