lightgbm.CVBooster

class lightgbm.CVBooster[source]

Bases: object

CVBooster in LightGBM.

Auxiliary data structure to hold and redirect all boosters of cv function. This class has the same methods as Booster class. All method calls are actually performed for underlying Boosters and then all returned results are returned in a list.

boosters

The list of underlying fitted models.

Type

list of Booster

best_iteration

The best iteration of fitted model.

Type

int

__init__()[source]

Initialize the CVBooster.

Generally, no need to instantiate manually.

Methods

__init__()

Initialize the CVBooster.