Commit 8caad8de authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

[docs] fixed capital letters and formating (#873)

* fixed capital letters and formating

* fixed CMake capital letters; added VS 2013 to the list of allowed versions
parent 30e06be0
...@@ -6,7 +6,7 @@ Installation ...@@ -6,7 +6,7 @@ Installation
### Preparation ### Preparation
You need to install git and [cmake](https://cmake.org/) first. You need to install git and [CMake](https://cmake.org/) first.
Note: 32-bit R/Rtools is not supported. Note: 32-bit R/Rtools is not supported.
...@@ -14,7 +14,7 @@ Note: 32-bit R/Rtools is not supported. ...@@ -14,7 +14,7 @@ Note: 32-bit R/Rtools is not supported.
Installing [Rtools](https://cran.r-project.org/bin/windows/Rtools/) is mandatory, and only support the 64-bit version. It requires to add to PATH the Rtools MinGW64 folder, if it was not done automatically during installation. Installing [Rtools](https://cran.r-project.org/bin/windows/Rtools/) is mandatory, and only support the 64-bit version. It requires to add to PATH the Rtools MinGW64 folder, if it was not done automatically during installation.
The default compiler is Visual Studio (or [MS Build](https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017)) in Windows, with an automatic fallback to Rtools or any [MinGW64](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/) (x86_64-posix-seh) available (this means if you have only Rtools and cmake, it will compile fine). The default compiler is Visual Studio (or [MS Build](https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017)) in Windows, with an automatic fallback to Rtools or any [MinGW64](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/) (x86_64-posix-seh) available (this means if you have only Rtools and CMake, it will compile fine).
To force the usage of Rtools / MinGW, you can set `use_mingw` to `TRUE` in `R-package/src/install.libs.R`. To force the usage of Rtools / MinGW, you can set `use_mingw` to `TRUE` in `R-package/src/install.libs.R`.
...@@ -75,7 +75,7 @@ model <- lgb.cv(params, dtrain, 10, nfold=5, min_data=1, learning_rate=1, early_ ...@@ -75,7 +75,7 @@ model <- lgb.cv(params, dtrain, 10, nfold=5, min_data=1, learning_rate=1, early_
``` ```
Installation with precompiled dll/lib from R using GitHub Installation with precompiled dll/lib from R using GitHub
------------ ---------------------------------------------------------
You can install LightGBM R-package from GitHub with devtools thanks to a helper package for LightGBM. You can install LightGBM R-package from GitHub with devtools thanks to a helper package for LightGBM.
...@@ -86,7 +86,7 @@ You will need: ...@@ -86,7 +86,7 @@ You will need:
* Precompiled LightGBM dll/lib * Precompiled LightGBM dll/lib
* MinGW / Visual Studio / gcc (depending on your OS and your needs) with make in PATH environment variable * MinGW / Visual Studio / gcc (depending on your OS and your needs) with make in PATH environment variable
* git in PATH environment variable * git in PATH environment variable
* [cmake](https://cmake.org/) in PATH environment variable * [CMake](https://cmake.org/) in PATH environment variable
* [lgbdl](https://github.com/Laurae2/lgbdl/) R-package, which can be installed using `devtools::install_github("Laurae2/lgbdl")` * [lgbdl](https://github.com/Laurae2/lgbdl/) R-package, which can be installed using `devtools::install_github("Laurae2/lgbdl")`
* [Rtools](https://cran.r-project.org/bin/windows/Rtools/) if using Windows * [Rtools](https://cran.r-project.org/bin/windows/Rtools/) if using Windows
...@@ -125,7 +125,7 @@ lgb.dl(commit = "master", ...@@ -125,7 +125,7 @@ lgb.dl(commit = "master",
For more details about options, please check [Laurae2/lgbdl](https://github.com/Laurae2/lgbdl/) R-package. For more details about options, please check [Laurae2/lgbdl](https://github.com/Laurae2/lgbdl/) R-package.
Examples Examples
------------ --------
Please visit [demo](demo): Please visit [demo](demo):
......
...@@ -23,6 +23,7 @@ For more details, please refer to [Features](https://github.com/Microsoft/LightG ...@@ -23,6 +23,7 @@ For more details, please refer to [Features](https://github.com/Microsoft/LightG
News News
---- ----
07/13/2017: [Gitter](https://gitter.im/Microsoft/LightGBM) is avaiable. 07/13/2017: [Gitter](https://gitter.im/Microsoft/LightGBM) is avaiable.
06/20/2017: Python-package is on PyPI now. 06/20/2017: Python-package is on PyPI now.
...@@ -52,8 +53,9 @@ Julia Package: https://github.com/Allardvm/LightGBM.jl ...@@ -52,8 +53,9 @@ Julia Package: https://github.com/Allardvm/LightGBM.jl
JPMML: https://github.com/jpmml/jpmml-lightgbm JPMML: https://github.com/jpmml/jpmml-lightgbm
Get Started And Documentation Get Started and Documentation
------------------------- -----------------------------
Install by following the guide for the [command line program](https://github.com/Microsoft/LightGBM/wiki/Installation-Guide), [Python package](https://github.com/Microsoft/LightGBM/tree/master/python-package) or [R-package](https://github.com/Microsoft/LightGBM/tree/master/R-package). Then please see the [Quick Start](https://github.com/Microsoft/LightGBM/wiki/Quick-Start) guide. Install by following the guide for the [command line program](https://github.com/Microsoft/LightGBM/wiki/Installation-Guide), [Python package](https://github.com/Microsoft/LightGBM/tree/master/python-package) or [R-package](https://github.com/Microsoft/LightGBM/tree/master/R-package). Then please see the [Quick Start](https://github.com/Microsoft/LightGBM/wiki/Quick-Start) guide.
Our primary documentation is at https://lightgbm.readthedocs.io/ and is generated from this repository. Our primary documentation is at https://lightgbm.readthedocs.io/ and is generated from this repository.
...@@ -90,5 +92,6 @@ LightGBM has been developed and used by many active community members. Your help ...@@ -90,5 +92,6 @@ LightGBM has been developed and used by many active community members. Your help
- Open issue if you met problems during development. - Open issue if you met problems during development.
Microsoft Open Source Code of Conduct Microsoft Open Source Code of Conduct
------------ -------------------------------------
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
LightGBM GPU Tutorial LightGBM GPU Tutorial
================================== =====================
The purpose of this document is to give you a quick step-by-step tutorial on GPU training. The purpose of this document is to give you a quick step-by-step tutorial on GPU training.
...@@ -7,9 +7,8 @@ For Windows, please see [GPU Windows Tutorial](./GPU-Windows.md). ...@@ -7,9 +7,8 @@ For Windows, please see [GPU Windows Tutorial](./GPU-Windows.md).
We will use the GPU instance on [Microsoft Azure cloud computing platform](https://azure.microsoft.com/) for demonstration, but you can use any machine with modern AMD or NVIDIA GPUs. We will use the GPU instance on [Microsoft Azure cloud computing platform](https://azure.microsoft.com/) for demonstration, but you can use any machine with modern AMD or NVIDIA GPUs.
GPU Setup GPU Setup
------------------------- ---------
You need to launch a `NV` type instance on Azure (available in East US, North Central US, South Central US, West Europe and Southeast Asia zones) and select Ubuntu 16.04 LTS as the operating system. You need to launch a `NV` type instance on Azure (available in East US, North Central US, South Central US, West Europe and Southeast Asia zones) and select Ubuntu 16.04 LTS as the operating system.
...@@ -34,9 +33,10 @@ After about 30 seconds, the server should be up again. ...@@ -34,9 +33,10 @@ After about 30 seconds, the server should be up again.
If you are using a AMD GPU, you should download and install the [AMDGPU-Pro](http://support.amd.com/en-us/download/linux) driver and also install package `ocl-icd-libopencl1` and `ocl-icd-opencl-dev`. If you are using a AMD GPU, you should download and install the [AMDGPU-Pro](http://support.amd.com/en-us/download/linux) driver and also install package `ocl-icd-libopencl1` and `ocl-icd-opencl-dev`.
Build LightGBM Build LightGBM
---------------------------- --------------
Now install necessary building tools and dependencies: Now install necessary building tools and dependencies:
``` ```
sudo apt-get install --no-install-recommends git cmake build-essential libboost-dev libboost-system-dev libboost-filesystem-dev sudo apt-get install --no-install-recommends git cmake build-essential libboost-dev libboost-system-dev libboost-filesystem-dev
``` ```
...@@ -82,7 +82,7 @@ You need to set an additional parameter `"device" : "gpu"` (along with your othe ...@@ -82,7 +82,7 @@ You need to set an additional parameter `"device" : "gpu"` (along with your othe
You can read our [Python Guide](https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide) for more information on how to use the Python interface. You can read our [Python Guide](https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide) for more information on how to use the Python interface.
Dataset Preparation Dataset Preparation
---------------------------- -------------------
Using the following commands to prepare the Higgs dataset: Using the following commands to prepare the Higgs dataset:
...@@ -172,9 +172,8 @@ Further Reading ...@@ -172,9 +172,8 @@ Further Reading
[GPU Windows Tutorial](./GPU-Windows.md) [GPU Windows Tutorial](./GPU-Windows.md)
Reference Reference
--------------- ---------
Please kindly cite the following article in your publications if you find the GPU acceleration useful: Please kindly cite the following article in your publications if you find the GPU acceleration useful:
Huan Zhang, Si Si and Cho-Jui Hsieh. [GPU Acceleration for Large-scale Tree Boosting](https://arxiv.org/abs/1706.08359). arXiv:1706.08359, 2017. Huan Zhang, Si Si and Cho-Jui Hsieh. [GPU Acceleration for Large-scale Tree Boosting](https://arxiv.org/abs/1706.08359). arXiv:1706.08359, 2017.
GPU Windows Compilation GPU Windows Compilation
========================= =======================
This guide is for the MinGW build. This guide is for the MinGW build.
For the MSVC (Visual Studio) build with GPU, please refer to https://github.com/Microsoft/LightGBM/wiki/Installation-Guide#windows-2 ( We recommend you to use this since it is much easier). For the MSVC (Visual Studio) build with GPU, please refer to https://github.com/Microsoft/LightGBM/wiki/Installation-Guide#windows-2 ( We recommend you to use this since it is much easier).
...@@ -15,7 +15,7 @@ Installation steps (depends on what you are going to do): ...@@ -15,7 +15,7 @@ Installation steps (depends on what you are going to do):
* Install MinGW * Install MinGW
* Install Boost * Install Boost
* Install Git * Install Git
* Install cmake * Install CMake
* Create LightGBM binaries * Create LightGBM binaries
* Debugging LightGBM in CLI (if GPU is crashing or any other crash reason) * Debugging LightGBM in CLI (if GPU is crashing or any other crash reason)
...@@ -190,16 +190,16 @@ Keep Git Bash open. ...@@ -190,16 +190,16 @@ Keep Git Bash open.
--- ---
## cmake Installation, Configuration, Generation ## CMake Installation, Configuration, Generation
**CLI / Python users only** **CLI / Python users only**
Installing cmake requires one download first and then a lot of configuration for LightGBM: Installing CMake requires one download first and then a lot of configuration for LightGBM:
![Downloading cmake](https://cloud.githubusercontent.com/assets/9083669/24919759/fe5f4d90-1ee4-11e7-992e-00f8d9bfe6dd.png) ![Downloading CMake](https://cloud.githubusercontent.com/assets/9083669/24919759/fe5f4d90-1ee4-11e7-992e-00f8d9bfe6dd.png)
* Download cmake 3.8.0 here: https://cmake.org/download/. * Download CMake 3.8.0 here: https://cmake.org/download/.
* Install cmake. * Install CMake.
* Run cmake-gui. * Run cmake-gui.
* Select the folder where you put LightGBM for `Where is the source code`, default using our steps would be `C:/github_repos/LightGBM`. * Select the folder where you put LightGBM for `Where is the source code`, default using our steps would be `C:/github_repos/LightGBM`.
* Copy the folder name, and add `/build` for "Where to build the binaries", default using our steps would be `C:/github_repos/LightGBM/build`. * Copy the folder name, and add `/build` for "Where to build the binaries", default using our steps would be `C:/github_repos/LightGBM/build`.
...@@ -237,7 +237,7 @@ Configuring done ...@@ -237,7 +237,7 @@ Configuring done
Generating done Generating done
``` ```
This is straightforward, as cmake is providing a large help into locating the correct elements. This is straightforward, as CMake is providing a large help into locating the correct elements.
--- ---
...@@ -293,13 +293,13 @@ You will have to redo the compilation steps for LightGBM to add debugging mode. ...@@ -293,13 +293,13 @@ You will have to redo the compilation steps for LightGBM to add debugging mode.
![Files to remove](https://cloud.githubusercontent.com/assets/9083669/25051307/3b7dd084-214c-11e7-9758-c338c8cacb1e.png) ![Files to remove](https://cloud.githubusercontent.com/assets/9083669/25051307/3b7dd084-214c-11e7-9758-c338c8cacb1e.png)
Once you removed the file, go into cmake, and follow the usual steps. Before clicking "Generate", click on "Add Entry": Once you removed the file, go into CMake, and follow the usual steps. Before clicking "Generate", click on "Add Entry":
![Added manual entry in cmake](https://cloud.githubusercontent.com/assets/9083669/25051323/508969ca-214c-11e7-884a-20882cd3936a.png) ![Added manual entry in CMake](https://cloud.githubusercontent.com/assets/9083669/25051323/508969ca-214c-11e7-884a-20882cd3936a.png)
In addition, click on Configure and Generate: In addition, click on Configure and Generate:
![Configured and Generated cmake](https://cloud.githubusercontent.com/assets/9083669/25051236/e71237ce-214b-11e7-8faa-d885d7826fe1.png) ![Configured and Generated CMake](https://cloud.githubusercontent.com/assets/9083669/25051236/e71237ce-214b-11e7-8faa-d885d7826fe1.png)
And then, follow the regular LightGBM CLI installation from there. And then, follow the regular LightGBM CLI installation from there.
...@@ -364,8 +364,7 @@ l-fast-relaxed-math") at C:/boost/boost-build/include/boost/compute/program.hpp: ...@@ -364,8 +364,7 @@ l-fast-relaxed-math") at C:/boost/boost-build/include/boost/compute/program.hpp:
Right-click the command prompt, click "Mark", and select all the text from the first line (with the command prompt containing gdb) to the last line printed, containing all the log, such as: Right-click the command prompt, click "Mark", and select all the text from the first line (with the command prompt containing gdb) to the last line printed, containing all the log, such as:
``` ```
C:\LightGBM\examples\binary_classification>gdb --args "../../lightgbm.exe" config=train.conf data=binary.train valid=binary.test objective=binary device C:\LightGBM\examples\binary_classification>gdb --args "../../lightgbm.exe" config=train.conf data=binary.train valid=binary.test objective=binary device=gpu
=gpu
GNU gdb (GDB) 7.10.1 GNU gdb (GDB) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc. Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
......
Binary Classification Example Binary Classification Example
===================== =============================
Here is an example for LightGBM to run binary classification task. Here is an example for LightGBM to run binary classification task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training #### Training
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=train.conf lightgbm.exe config=train.conf
``` ```
For Linux, by running following command in this folder:
For linux, by running following command in this folder:
``` ```
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
...@@ -21,14 +23,14 @@ For linux, by running following command in this folder: ...@@ -21,14 +23,14 @@ For linux, by running following command in this folder:
You should finish training first. You should finish training first.
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=predict.conf lightgbm.exe config=predict.conf
``` ```
For linux, by running following command in this folder: For Linux, by running following command in this folder:
``` ```
./lightgbm config=predict.conf ./lightgbm config=predict.conf
``` ```
LambdaRank Example LambdaRank Example
===================== ==================
Here is an example for LightGBM to run lambdarank task. Here is an example for LightGBM to run lambdarank task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training #### Training
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=train.conf lightgbm.exe config=train.conf
``` ```
For Linux, by running following command in this folder:
For linux, by running following command in this folder:
``` ```
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
...@@ -21,13 +23,14 @@ For linux, by running following command in this folder: ...@@ -21,13 +23,14 @@ For linux, by running following command in this folder:
You should finish training first. You should finish training first.
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=predict.conf lightgbm.exe config=predict.conf
``` ```
For linux, by running following command in this folder: For Linux, by running following command in this folder:
``` ```
./lightgbm config=predict.conf ./lightgbm config=predict.conf
``` ```
Multiclass Classification Example Multiclass Classification Example
===================== =================================
Here is an example for LightGBM to run multiclass classification task. Here is an example for LightGBM to run multiclass classification task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training #### Training
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=train.conf lightgbm.exe config=train.conf
``` ```
For Linux, by running following command in this folder:
For linux, by running following command in this folder:
``` ```
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
...@@ -21,13 +23,14 @@ For linux, by running following command in this folder: ...@@ -21,13 +23,14 @@ For linux, by running following command in this folder:
You should finish training first. You should finish training first.
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=predict.conf lightgbm.exe config=predict.conf
``` ```
For linux, by running following command in this folder: For Linux, by running following command in this folder:
``` ```
./lightgbm config=predict.conf ./lightgbm config=predict.conf
``` ```
Parallel Learning Example Parallel Learning Example
===================== =========================
Here is an example for LightGBM to perform parallel learning for 2 machines. Here is an example for LightGBM to perform parallel learning for 2 machines.
1. Edit mlist.txt , write the ip of these 2 machines that you want to run application on. 1. Edit mlist.txt, write the ip of these 2 machines that you want to run application on.
``` ```
machine1_ip 12400 machine1_ip 12400
machine2_ip 12400 machine2_ip 12400
``` ```
2. Copy this folder and executable file to these 2 machines that you want to run application on. 2. Copy this folder and executable file to these 2 machines that you want to run application on.
3. Run command in this folder on both 2 machines: 3. Run command in this folder on both 2 machines:
For windows:```lightgbm.exe config=train.conf``` For Windows: ```lightgbm.exe config=train.conf```
For linux:```./lightgbm config=train.conf``` For Linux: ```./lightgbm config=train.conf```
This parallel learning example is based on socket. LightGBM also support parallel learning based on mpi. This parallel learning example is based on socket. LightGBM also support parallel learning based on mpi.
......
Python Package Example Python Package Examples
===================== =======================
Here is an example for LightGBM to use python package. Here is an example for LightGBM to use python package.
***You should install lightgbm (both c++ and python verion) first.*** ***You should install lightgbm (both c++ and python verion) first.***
...@@ -7,15 +8,19 @@ Here is an example for LightGBM to use python package. ...@@ -7,15 +8,19 @@ Here is an example for LightGBM to use python package.
For the installation, check the wiki [here](https://github.com/Microsoft/LightGBM/wiki/Installation-Guide). For the installation, check the wiki [here](https://github.com/Microsoft/LightGBM/wiki/Installation-Guide).
You also need scikit-learn, pandas and matplotlib (only for plot example) to run the examples, but they are not required for the package itself. You can install them with pip: You also need scikit-learn, pandas and matplotlib (only for plot example) to run the examples, but they are not required for the package itself. You can install them with pip:
``` ```
pip install scikit-learn pandas matplotlib -U pip install scikit-learn pandas matplotlib -U
``` ```
Now you can run examples in this folder, for example: Now you can run examples in this folder, for example:
``` ```
python simple_example.py python simple_example.py
``` ```
Examples including:
Examples include:
- [simple_example.py](https://github.com/Microsoft/LightGBM/blob/master/examples/python-guide/simple_example.py) - [simple_example.py](https://github.com/Microsoft/LightGBM/blob/master/examples/python-guide/simple_example.py)
- Construct Dataset - Construct Dataset
- Basic train and predict - Basic train and predict
...@@ -36,4 +41,4 @@ Examples including: ...@@ -36,4 +41,4 @@ Examples including:
- Change learning rates during training - Change learning rates during training
- Self-defined objective function - Self-defined objective function
- Self-defined eval metric - Self-defined eval metric
- Callback function - Callback function
\ No newline at end of file
Regression Example Regression Example
===================== ==================
Here is an example for LightGBM to run regression task. Here is an example for LightGBM to run regression task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training #### Training
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=train.conf lightgbm.exe config=train.conf
``` ```
For Linux, by running following command in this folder:
For linux, by running following command in this folder:
``` ```
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
...@@ -21,13 +22,14 @@ For linux, by running following command in this folder: ...@@ -21,13 +22,14 @@ For linux, by running following command in this folder:
You should finish training first. You should finish training first.
For windows, by running following command in this folder: For Windows, by running following command in this folder:
``` ```
lightgbm.exe config=predict.conf lightgbm.exe config=predict.conf
``` ```
For linux, by running following command in this folder: For Linux, by running following command in this folder:
``` ```
./lightgbm config=predict.conf ./lightgbm config=predict.conf
``` ```
...@@ -10,7 +10,7 @@ Installation ...@@ -10,7 +10,7 @@ Installation
Preparation Preparation
''''''''''' '''''''''''
`setuptools <https://pypi.python.org/pypi/setuptools>`_ is needed. `setuptools <https://pypi.python.org/pypi/setuptools>`_ is needed.
For Mac OS X users, gcc with OpenMP support must be installed first. Refer to `wiki <https://github.com/Microsoft/LightGBM/wiki/Installation-Guide#osx>`_ for installing gcc with OpenMP support. For Mac OS X users, gcc with OpenMP support must be installed first. Refer to `wiki <https://github.com/Microsoft/LightGBM/wiki/Installation-Guide#osx>`_ for installing gcc with OpenMP support.
...@@ -19,7 +19,7 @@ Note: 32-bit python is not supported. Please install 64-bit version. ...@@ -19,7 +19,7 @@ Note: 32-bit python is not supported. Please install 64-bit version.
Install from pip Install from pip
'''''''''''''''' ''''''''''''''''
Install `wheel <http://pythonwheels.com>`_ via ``pip install wheel`` first. For windows user, `VC runtime <https://go.microsoft.com/fwlink/?LinkId=746572>`_ is needed if Visual Studio(2015 or 2017) is not installed. Install `wheel <http://pythonwheels.com>`_ via ``pip install wheel`` first. For Windows user, `VC runtime <https://go.microsoft.com/fwlink/?LinkId=746572>`_ is needed if Visual Studio (2013, 2015 or 2017) is not installed.
``pip install lightgbm`` ``pip install lightgbm``
...@@ -31,9 +31,9 @@ Install source package from pip ...@@ -31,9 +31,9 @@ Install source package from pip
``pip install --no-binary :all: lightgbm`` ``pip install --no-binary :all: lightgbm``
Note: Installation from source package require installing `cmake <https://cmake.org/>`_ first. Note: Installation from source package require installing `CMake <https://cmake.org/>`_ first.
For Windows user, Visual Studio (or `MS Build <https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017>`_) is needed, and `cmake <https://cmake.org/>`_ must be version 3.8 or higher. For Windows user, Visual Studio (or `MS Build <https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017>`_) is needed, and `CMake <https://cmake.org/>`_ must be version 3.8 or higher.
For OSX user, you need to run ```export CXX=g++-7 CC=gcc-7``` before running ```pip install ... ```. For OSX user, you need to run ```export CXX=g++-7 CC=gcc-7``` before running ```pip install ... ```.
...@@ -50,9 +50,9 @@ Install with MinGW on Windows: ...@@ -50,9 +50,9 @@ Install with MinGW on Windows:
Install from GitHub Install from GitHub
''''''''''''''''''' '''''''''''''''''''
Installation from GitHub require installing `cmake <https://cmake.org/>`_ first. Installation from GitHub require installing `CMake <https://cmake.org/>`_ first.
For Windows user, Visual Studio (or `MS Build <https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017>`_) is needed, and `cmake <https://cmake.org/>`_ must be version 3.8 or higher. For Windows user, Visual Studio (or `MS Build <https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017>`_) is needed, and `CMake <https://cmake.org/>`_ must be version 3.8 or higher.
.. code:: sh .. code:: sh
...@@ -70,13 +70,13 @@ Use ``python setup.py install --gpu`` to enable GPU support. Boost and OpenCL ar ...@@ -70,13 +70,13 @@ Use ``python setup.py install --gpu`` to enable GPU support. Boost and OpenCL ar
Examples Examples
-------- --------
Refer to the walk through examples in `python-guide folder <https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide>`_ Refer to the walk through examples in `python-guide folder <https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide>`_.
Troubleshooting Troubleshooting
--------------- ---------------
Refer to `FAQ <https://github.com/Microsoft/LightGBM/tree/master/docs/FAQ.md>`_ Refer to `FAQ <https://github.com/Microsoft/LightGBM/tree/master/docs/FAQ.md>`_.
Developments Developments
------------ ------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment