__init__.py 552 Bytes
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# coding: utf-8
"""LightGBM, Light Gradient Boosting Machine.

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

from __future__ import absolute_import

import os

from .basic import Predictor, Dataset, Booster
from .engine import train, cv
try:
    from .sklearn import LGBMModel
except ImportError:
    pass

VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(VERSION_FILE) as f:
    __version__ = f.read().strip()

__all__ = ['Dataset', 'Booster',
           'train', 'cv',
           'LGBMModel']