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 不在缓存中,则缓存它。更多...
 
std::shared_ptr< PredictionCacheEntryResetItem (std::shared_ptr< DMatrix > m, Args const &... args)
 重新初始化缓存中的项。更多...
 
decltype(container_) const & Container ()
 获取底层哈希表的常量引用。返回前清除过期缓存。更多...
 
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

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