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

ArgumentDescriptionDefault value
model

The model obtained as the result of training.

Required argument
ntree_endА zero-based index of the first tree not to be used.Required argument
ntree_startА zero-based index of the first tree to be used.0