官术网_书友最值得收藏!

LightGBM

LightGBM is a gradient boosting framework that was developed by Microsoft that uses the tree-based learning algorithm in a different fashion than other GBMs, favoring exploration of more promising leaves (leaf-wise) instead of developing level-wise.


In graph terminology, LightGBM is pursuing a depth-first search strategy than a breadth-first search one.

It has been designed to be distributed (Parallel and GPU learning supported), and its unique approach really achieves faster training speed with lower memory usage (thus allowing for the handling of the larger scale of data):

The installation of XGBoost requires some more actions on your side than usual Python packages. If you are operating on a Windows system, open a shell and issue the following commands:

$> git clone --recursive https://github.com/Microsoft/LightGBM
$> cd LightGBM
$> mkdir build
$> cd build
$> cmake -G "MinGW Makefiles" ..
$> mingw32-make.exe -j4
You may need to install CMake on your system first ( https://cmake.org), and you also may need to run  cmake -G "MinGW Makefiles" .. if a sh.exe was found in your PATH error is reported.

If you are instead operating on a Linux system, you just need to digit on a shell:

$> git clone --recursive https://github.com/Microsoft/LightGBM
$> cd LightGBM
$> mkdir build
$> cd build
$> cmake ..
$> make -j4

After you have completed compiling the package, no matter whether you are on Windows or Linux, you just import it on your Python command line:

import lightgbm as lgbm
You can also build the package using MPI for parallel computing architectures, HDFS, or GPU versions. You can find all the detailed instructions at https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst.
主站蜘蛛池模板: 鸡泽县| 吉林省| 丰县| 卫辉市| 饶平县| 乐亭县| 全椒县| 周口市| 邹平县| 宜州市| 吴堡县| 兴隆县| 黄浦区| 阿城市| 伊金霍洛旗| 安龙县| 永德县| 彭州市| 宾阳县| 大荔县| 竹山县| 广元市| 原阳县| 镇赉县| 阿图什市| 嵩明县| 兖州市| 临江市| 麦盖提县| 德兴市| 香格里拉县| 东丽区| 龙门县| 贺兰县| 桃园市| 铁岭县| 南郑县| 青田县| 错那县| 商都县| 佛冈县|