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
Argument | Description | Default 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 |
Argument | Description | Default 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 |