Python-API.rst 836 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
15
16
17

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

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

21
22
    train
    cv
23
24

Scikit-learn API
25
26
----------------

27
28
29
30
.. warning::

    The last supported version of scikit-learn is ``0.21.3``. Our estimators are incompatible with newer versions.

31
32
.. autosummary::
    :toctree: pythonapi/
33

34
35
36
37
    LGBMModel
    LGBMClassifier
    LGBMRegressor
    LGBMRanker
38

39
40
41
Callbacks
---------

42
43
.. autosummary::
    :toctree: pythonapi/
44

45
46
47
48
    early_stopping
    print_evaluation
    record_evaluation
    reset_parameter
49
50
51
52

Plotting
--------

53
54
.. autosummary::
    :toctree: pythonapi/
55

56
57
58
59
60
    plot_importance
    plot_split_value_histogram
    plot_metric
    plot_tree
    create_tree_digraph