__init__.py 797 Bytes
Newer Older
wxchan's avatar
wxchan committed
1
2
3
4
5
6
7
8
# coding: utf-8
"""LightGBM, Light Gradient Boosting Machine.

Contributors: https://github.com/Microsoft/LightGBM/graphs/contributors
"""

from __future__ import absolute_import

Guolin Ke's avatar
Guolin Ke committed
9
from .basic import Dataset, Booster
wxchan's avatar
wxchan committed
10
from .engine import train, cv
11
from .callback import print_evaluation, record_evaluation, reset_parameter, early_stopping
wxchan's avatar
wxchan committed
12
13
14
15
try:
    from .sklearn import LGBMModel, LGBMRegressor, LGBMClassifier, LGBMRanker
except ImportError:
    pass
16
17
18
19
try:
    from .plotting import plot_importance
except ImportError:
    pass
wxchan's avatar
wxchan committed
20
21
22
23
24
25


__version__ = 0.1

__all__ = ['Dataset', 'Booster',
           'train', 'cv',
26
           'LGBMModel', 'LGBMRegressor', 'LGBMClassifier', 'LGBMRanker',
27
28
           'print_evaluation', 'record_evaluation', 'reset_parameter', 'early_stopping',
           'plot_importance']