Multiclass prediction caching for CPU Hist (#6550)
Co-authored-by: Kirill Shvets <kirill.shvets@intel.com>
This commit is contained in:
@@ -70,11 +70,14 @@ class TreeUpdater : public Configurable {
|
||||
* the prediction cache. If true, the prediction cache will have been
|
||||
* updated by the time this function returns.
|
||||
*/
|
||||
virtual bool UpdatePredictionCache(const DMatrix* data,
|
||||
HostDeviceVector<bst_float>* out_preds) {
|
||||
// Remove unused parameter compiler warning.
|
||||
(void) data;
|
||||
(void) out_preds;
|
||||
virtual bool UpdatePredictionCache(const DMatrix* /*data*/,
|
||||
HostDeviceVector<bst_float>* /*out_preds*/) {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool UpdatePredictionCacheMulticlass(const DMatrix* /*data*/,
|
||||
HostDeviceVector<bst_float>* /*out_preds*/,
|
||||
const int /*gid*/, const int /*ngroup*/) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user