Install LIGHTGBM in Windows Python3.5

Source: Internet
Author: User

LIGHTGBM is the gradient boosting framework introduced by Microsoft's DMTK because it is fast and efficient, and may later become another big killer in the data mining competition. Address: Https://github.com/Microsoft/LightGBM.

The project just open source has been hot: three days on GitHub was star 1000+ times, fork 200+ times, there are nearly thousand people concerned about "how to view Microsoft Open source LIGHTGBM?" ”。

The next step is to introduce a learning model called "performance beyond Other Boosting" and its compilation and installation methods, as well as opening Python's LIGHTGBM support.
The following two tutorials assume that you have installed python3.5.x and visual studio2015 and need to clone the repository locally:

Installation steps:

1 Download the source code, address Https://github.com/Microsoft/LightGBM.

2 Compiling the LIGHTGBM:

Enter the LightGBM directory, use VS2015, open windows/LightGBM.sln , select DLL and x64, press Ctrl+Shift+B to compile, DLL file will be in the windows/x64/DLL/ directory

Then follow the tutorial http://blog.csdn.net/testcs_dn/article/details/54176824 compile the corresponding EXE and DLL files.
Note: The configuration option must be selected so that the following two LIGHTGBM python support packages can be successfully installed only if the correct DLL and EXE files are generated according to the tutorial configuration.

3. Install the Python package:

Go to Catalogpython-package

Execute command
Python setup.py Install

4. Test:

Enterexamples\python-guide

Perform a sample
Python. \simple_example.py
If there is no error, it means the installation was successful.

Simple method:

Both the win and Linux platforms can be installed with the latest LIGHTGBM via PIP install LIGHTGBM, which is now the lightgbm-2.0.3 version. The children's shoes installed under this tutorial can also be upgraded to the latest version of LIGHTGBM using the command pip Install–upgrade LIGHTGBM.

Pip Install LIGHTGBM

To install the TQDM library:

Pip Install TQDM

Reference Links:

Https://github.com/Microsoft/LightGBM/wiki/Installation-Guide
Https://github.com/Microsoft/LightGBM/blob/master/python-package/README.rst

53814663

54176824

Install LIGHTGBM in Windows Python3.5

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.