README.md

LightGBM Online Installer

This is Laurae's LightGBM online installer: it allows to install LightGBM from source directly from your R terminal.

Please go to branch pre-2.2.0 for a LightGBM version below 2.2.0.

Installation

devtools::install_github("Laurae2/lgbdl")

Pre-requisites

You need to define the proper compiler to use. It could be:

In addition, specific software must be installed for Windows:

In Linux, you can use repositories to install git and cmake.

For GPU compilation, it requires Boost libraries as outlined in the LightGBM R official documentation.

Usage

It is as simple as this:

lgbdl::lgb.dl(compiler = "vs")

For Linux or Rtools/MinGW-only:

lgbdl::lgb.dl(compiler = "gcc")

For GPU installation in R:

lgbdl::lgb.dl(compiler = "vs", use_gpu = TRUE)

For installing a specific commit of LightGBM:

lgbdl::lgb.dl(commit = "577a03c", compiler = "vs")

Tests

Tested working on:



Laurae2/lgbdl documentation built on May 20, 2019, 2:42 p.m.