xgboost
Public Member Functions | Public Attributes | List of all members
xgboost::PredictionCacheEntry Struct Reference

Contains pointer to input matrix and associated cached predictions. More...

#include <predictor.h>

Collaboration diagram for xgboost::PredictionCacheEntry:
Collaboration graph

Public Member Functions

 PredictionCacheEntry ()=default
 
void Update (std::uint32_t v)
 Update the cache entry by number of versions. More...
 
void Reset ()
 

Public Attributes

HostDeviceVector< bst_floatpredictions
 
std::uint32_t version {0}
 

Detailed Description

Contains pointer to input matrix and associated cached predictions.

Constructor & Destructor Documentation

◆ PredictionCacheEntry()

xgboost::PredictionCacheEntry::PredictionCacheEntry ( )
default

Member Function Documentation

◆ Reset()

void xgboost::PredictionCacheEntry::Reset ( )
inline

◆ Update()

void xgboost::PredictionCacheEntry::Update ( std::uint32_t  v)
inline

Update the cache entry by number of versions.

Parameters
vAdded versions.

Member Data Documentation

◆ predictions

HostDeviceVector<bst_float> xgboost::PredictionCacheEntry::predictions

◆ version

std::uint32_t xgboost::PredictionCacheEntry::version {0}

The documentation for this struct was generated from the following file: