catboost.shrink

catboost.shrink(model,
                ntree_end,
                ntree_start = 0)

Purpose

Shrink the model. Only trees with indices from the range [ntree_start, ntree_end) are kept.

Arguments

model

Description

The model obtained as the result of training.

Default value

Required argument

ntree_end

Description

А zero-based index of the first tree not to be used.

Default value

Required argument

ntree_start

Description

А zero-based index of the first tree to be used.

Default value

0