Python-API.rst 805 Bytes
Newer Older
1
2
Python API
==========
3

4
5
.. currentmodule:: lightgbm

6
Data Structure API
7
8
------------------

9
10
.. autosummary::
    :toctree: pythonapi/
11

12
13
    Dataset
    Booster
14
    CVBooster
15
16
17
18

Training API
------------

19
20
.. autosummary::
    :toctree: pythonapi/
21

22
23
    train
    cv
24
25

Scikit-learn API
26
27
----------------

28
29
.. autosummary::
    :toctree: pythonapi/
30

31
32
33
34
    LGBMModel
    LGBMClassifier
    LGBMRegressor
    LGBMRanker
35

36
37
38
Callbacks
---------

39
40
.. autosummary::
    :toctree: pythonapi/
41

42
43
44
45
    early_stopping
    print_evaluation
    record_evaluation
    reset_parameter
46
47
48
49

Plotting
--------

50
51
.. autosummary::
    :toctree: pythonapi/
52

53
54
55
56
57
    plot_importance
    plot_split_value_histogram
    plot_metric
    plot_tree
    create_tree_digraph
58
59
60
61
62
63
64
65

Utilities
---------

.. autosummary::
    :toctree: pythonapi/

    register_logger