- Python Data Science Essentials
- Alberto Boschetti Luca Massaron
- 277字
- 2021-08-13 15:19:35
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):
- Website: https://github.com/Microsoft/LightGBM
- Version at the time of print: 2.1.0
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
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
- Unreal Engine:Game Development from A to Z
- Seven NoSQL Databases in a Week
- Cinema 4D R13 Cookbook
- 會聲會影X5視頻剪輯高手速成
- 極簡AI入門:一本書讀懂人工智能思維與應用
- Learning Apache Cassandra(Second Edition)
- 數據庫原理與應用技術學習指導
- STM32G4入門與電機控制實戰:基于X-CUBE-MCSDK的無刷直流電機與永磁同步電機控制實現
- 完全掌握AutoCAD 2008中文版:綜合篇
- 3D Printing for Architects with MakerBot
- Prometheus監控實戰
- 空間站多臂機器人運動控制研究
- 網中之我:何明升網絡社會論稿
- C++程序設計基礎(上)
- 寒江獨釣:Windows內核安全編程