README.rst 1.36 KB
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
5
6
7
8
LightGBM Python Package
=======================

Installation
------------

1. Following `Installation Guide <https://github.com/Microsoft/LightGBM/wiki/Installation-Guide>`__ to build first.
   For the windows user, please change the build config to ``DLL``.
Guolin Ke's avatar
Guolin Ke committed
9
2. Install with ``cd python-package; python setup.py install`` 
Guolin Ke's avatar
Guolin Ke committed
10
11
12
13
14
15
16

Note: Make sure you have `setuptools <https://pypi.python.org/pypi/setuptools>`__


Examples
--------

17
Refer to the walk through examples in `python-guide folder <https://github.com/Microsoft/LightGBM/tree/master/examples/python-guide>`__
wxchan's avatar
wxchan committed
18
19
20
21
22


Troubleshooting
--------

23
Refer to `FAQ <https://github.com/Microsoft/LightGBM/tree/master/docs/FAQ.md>`__ 
wxchan's avatar
wxchan committed
24
25
26
27

Developments
--------

28
The code style of python package follows `pep8 <https://www.python.org/dev/peps/pep-0008/>`__. If you would like to make a contribution and not familiar with pep-8, please check the pep8 style guide first. Otherwise, you won't pass the check. You should be careful about:
wxchan's avatar
wxchan committed
29

30
- E1 Indentation (check pep8 link above)
wxchan's avatar
wxchan committed
31
32
33
34
35
36
37
38
- E202 whitespace before and after brackets
- E225 missing whitespace around operator
- E226 missing whitespace around arithmetic operator
- E261 at least two spaces before inline comment
- E301 expected 1 blank line in front of and at the end of a method
- E302 expected 2 blank lines in front of and at the end of a function or a class

You can ignore E501 (line too long).