File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ class Predictor {
92
92
* \param out_predt Prediction vector to be initialized.
93
93
* \param model Tree model used for prediction.
94
94
*/
95
- void InitOutPredictions (const MetaInfo& info, HostDeviceVector<bst_float>* out_predt,
96
- const gbm::GBTreeModel& model) const ;
95
+ virtual void InitOutPredictions (const MetaInfo& info, HostDeviceVector<bst_float>* out_predt,
96
+ const gbm::GBTreeModel& model) const ;
97
97
98
98
/* *
99
99
* \brief Generate batch predictions for a given feature matrix. May use
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ class Predictor : public xgboost::Predictor {
233
233
protected:
234
234
void InitOutPredictions (const MetaInfo& info,
235
235
HostDeviceVector<bst_float>* out_preds,
236
- const gbm::GBTreeModel& model) const {
236
+ const gbm::GBTreeModel& model) const override {
237
237
CHECK_NE (model.learner_model_param ->num_output_group , 0 );
238
238
size_t n = model.learner_model_param ->num_output_group * info.num_row_ ;
239
239
const auto & base_margin = info.base_margin_ .Data ()->HostVector ();
You can’t perform that action at this time.
0 commit comments