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

ParameterPossible typesDescriptionDefault value
ntree_startintА zero-based index of the first tree to be used.0
ntree_endintА zero-based index of the first tree not to be used.Required argument