# Staged prediction

CatBoost allows to apply a trained model and calculate the results for each i-th tree of the model taking into consideration only the trees in the range `[1;i]`

.

Choose the implementation for more details.

Class | Class purpose | Method | Description |
---|---|---|---|

CatBoost | Training and applying models. | staged_predict | Apply the model to the given dataset and calculate the results for each i-th tree of the model taking into consideration only the trees in the range |

CatBoostRegressor | Training and applying models for the regression problems. When using the applying methods only the predicted class is returned. Provides compatibility with the scikit-learn tools. | staged_predict | |

CatBoostClassifier | Training and applying models for the classification problems. When using the applying methods only the probability that the object belongs to the class is returned. Provides compatibility with the scikit-learn tools. | staged_predict | |

staged_predict_proba | The same as staged_predict with the difference that the results are probabilities that the object belongs to the positive class. |

Class | Class purpose | Method | Description |
---|---|---|---|

CatBoost | Training and applying models. | staged_predict | Apply the model to the given dataset and calculate the results for each i-th tree of the model taking into consideration only the trees in the range |

CatBoostRegressor | Training and applying models for the regression problems. When using the applying methods only the predicted class is returned. Provides compatibility with the scikit-learn tools. | staged_predict | |

CatBoostClassifier | Training and applying models for the classification problems. When using the applying methods only the probability that the object belongs to the class is returned. Provides compatibility with the scikit-learn tools. | staged_predict | |

staged_predict_proba | The same as staged_predict with the difference that the results are probabilities that the object belongs to the positive class. |

Method | PurposePurpose |
---|---|

catboost.staged_predict | Apply the model to the given dataset and calculate the results for the specified trees only. |

Method | PurposePurpose |
---|---|

catboost.staged_predict | Apply the model to the given dataset and calculate the results for the specified trees only. |

Command | Purpose | Command keys | Key description |
---|---|---|---|

catboost calc | Apply the model. | --eval-period | To reduce the number of trees to use when the model is applied or the metrics are calculated, set the step of the trees to use to This parameter defines the step of the trees to use for the staged prediction mode. In this mode the results for the |

Command | Purpose | Command keys | Key description |
---|---|---|---|

catboost calc | Apply the model. | --eval-period | To reduce the number of trees to use when the model is applied or the metrics are calculated, set the step of the trees to use to This parameter defines the step of the trees to use for the staged prediction mode. In this mode the results for the |