Windows下如何安装LightGBM

来源:互联网 发布:aes算法过程 编辑:程序博客网 时间:2024/06/05 06:41

如何在Windows下安装LightGBM

目录

-LightGBM简介
-Windows下安装步骤

LightGBM简介

去年12月初,微软DMTK(分布式机器学习工具包)团队在Github上开源了性能超越其他boosting工具的LightGBM(https://github.com/Microsoft/LightGBM),对于该工具,微软自己的描述如下:

A fast, distributed, high performance gradient boosting (GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks. It is under the umbrella of the DMTK(http://github.com/microsoft/dmtk) project of Microsoft.

一种基于decision tree算法的快速,分布式,高性能梯度boosting框架,可用于排序,分类以及其它一些机器学习任务。它受微软的DMTK项目的保护。

GBDT (Gradient Boosting Decision Tree) 是机器学习中一个长盛不衰的模型,其主要思想是利用弱分类器(决策树)迭代训练以得到最优模型,该模型具有训练效果好、不易过拟合等优点。GBDT在工业界应用广泛,通常被用于点击率预测,搜索排序等任务。GBDT也是各种数据挖掘竞赛的致命武器,据统计Kaggle上的比赛有一半以上的冠军方案都是基于GBDT。

LightGBM具有以下优点:

  • 更快的训练速度
  • 更低的内存消耗
  • 更好的准确率
  • 分布式支持
  • 可以快速处理海量数据

Windows下安装步骤

1. Visual Studio安装

  • Clone or download latest source code(点击链接Github下载)
  • Open ./windows/LightGBM.sln by Visual Studio (VS2013版及以上)
  • Set configuration to Release and x64 , set to DLL for building library (最关键一步,见下图)
  • Press Ctrl+Shift+B to build.
  • The exe file is in ./windows/x64/Release/ after built (library(.dll) file is in ./windows/x64/DLL/) (生成的文件位于./windows/x64/DLL/)

注意:其中第3步如图所示:

这里写图片描述

(选择DLL,然后选择x64,然后build就好了,最后可以在./windows/x64下寻找DLL文件夹,如果有,则说明安装成功!!)

1 0
原创粉丝点击