Python-API.rst 932 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
39
40
41
42
43
44
45
Dask API
--------

.. autosummary::
    :toctree: pythonapi/

    DaskLGBMClassifier
    DaskLGBMRegressor
    DaskLGBMRanker

46
47
48
Callbacks
---------

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

52
53
54
55
    early_stopping
    print_evaluation
    record_evaluation
    reset_parameter
56
57
58
59

Plotting
--------

60
61
.. autosummary::
    :toctree: pythonapi/
62

63
64
65
66
67
    plot_importance
    plot_split_value_histogram
    plot_metric
    plot_tree
    create_tree_digraph
68
69
70
71
72
73
74
75

Utilities
---------

.. autosummary::
    :toctree: pythonapi/

    register_logger