Python-API.rst 957 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
Dask API
--------

39
40
.. versionadded:: 3.2.0

41
42
43
44
45
46
47
.. autosummary::
    :toctree: pythonapi/

    DaskLGBMClassifier
    DaskLGBMRegressor
    DaskLGBMRanker

48
49
50
Callbacks
---------

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

54
55
56
57
    early_stopping
    print_evaluation
    record_evaluation
    reset_parameter
58
59
60
61

Plotting
--------

62
63
.. autosummary::
    :toctree: pythonapi/
64

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

Utilities
---------

.. autosummary::
    :toctree: pythonapi/

    register_logger