[WIP] Extract prediction into separate interface (#2531)
* [WIP] Extract prediction into separate interface * Add copyright, fix linter errors * Add predictor to amalgamation * Fix documentation * Move prediction cache into predictor, add GBTreeModel * Updated predictor doc comments
This commit is contained in:
committed by
Tianqi Chen
parent
00eda28b3c
commit
0e06d1805d
@@ -517,7 +517,7 @@ class LearnerImpl : public Learner {
|
||||
unsigned ntree_limit = 0) const {
|
||||
CHECK(gbm_.get() != nullptr)
|
||||
<< "Predict must happen after Load or InitModel";
|
||||
gbm_->Predict(data, out_preds, ntree_limit);
|
||||
gbm_->PredictBatch(data, out_preds, ntree_limit);
|
||||
}
|
||||
// model parameter
|
||||
LearnerModelParam mparam;
|
||||
|
||||
Reference in New Issue
Block a user