| 79 | } |
| 80 | ~SingleRowPredictor() {} |
| 81 | bool IsPredictorEqual(const Config& config, int iter, Boosting* boosting) { |
| 82 | return early_stop_ != config.pred_early_stop || |
| 83 | early_stop_freq_ != config.pred_early_stop_freq || |
| 84 | early_stop_margin_ != config.pred_early_stop_margin || |
| 85 | iter_ != iter || |
| 86 | num_total_model_ != boosting->NumberOfTotalModel(); |
| 87 | } |
| 88 | |
| 89 | private: |
| 90 | std::unique_ptr<Predictor> predictor_; |
no test coverage detected