shrink

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

Method call format

shrink(ntree_end, ntree_start=0)

Parameters

Parameter Possible types Description Default value
ntree_start int А zero-based index of the first tree to be used. 0
ntree_end int А zero-based index of the first tree not to be used. Required argument