xgboost
公共成员函数 | 所有成员列表
xgboost::PredictionContainer 类参考

用于管理预测缓存的容器。 更多...

#include <predictor.h>

xgboost::PredictionContainer 的继承图
Inheritance graph
xgboost::PredictionContainer 的协作图
Collaboration graph

公共成员函数

 PredictionContainer ()
 
std::shared_ptr< PredictionCacheEntryCache (std::shared_ptr< DMatrix > m, DeviceOrd device)
 
- 公共成员函数 继承自 xgboost::DMatrixCache< PredictionCacheEntry >
 DMatrixCache (std::size_t cache_size)
 
DMatrixCacheoperator= (DMatrixCache &&that)
 
std::shared_ptr< PredictionCacheEntryCacheItem (std::shared_ptr< DMatrix > m, Args const &... args)
 如果 DMatrix 尚未在缓存中,则缓存新的 DMatrix。 更多...
 
std::shared_ptr< PredictionCacheEntryResetItem (std::shared_ptr< DMatrix > m, Args const &... args)
 重新初始化缓存中的项。 更多...
 
decltype(container_) const & Container ()
 获取底层哈希映射的 const 引用。返回前清除已过期的缓存。 更多...
 
std::shared_ptr< PredictionCacheEntryEntry (DMatrix const *m) const
 

额外继承的成员

- 静态公共成员函数 继承自 xgboost::DMatrixCache< PredictionCacheEntry >
static constexpr std::size_t DefaultSize ()
 
- 保护成员函数 继承自 xgboost::DMatrixCache< PredictionCacheEntry >
void CheckConsistent () const
 
void ClearExpired ()
 
void ClearExcess ()
 
- 保护属性 继承自 xgboost::DMatrixCache< PredictionCacheEntry >
std::unordered_map< Key, Item, Hash > container_
 
std::queue< Key > queue_
 
std::size_t max_size_
 

详细描述

用于管理预测缓存的容器。

构造函数和析构函数文档

◆ PredictionContainer()

xgboost::PredictionContainer::PredictionContainer ( )
inline

成员函数文档

◆ Cache()

std::shared_ptr<PredictionCacheEntry> xgboost::PredictionContainer::Cache ( std::shared_ptr< DMatrix m,
DeviceOrd  device 
)
inline

该类的文档由以下文件生成