Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
LightGBM::HistogramPool Class Reference

Public Member Functions

 HistogramPool ()
 Constructor.
 
 ~HistogramPool ()
 Destructor.
 
void Reset (int cache_size, int total_size)
 Reset pool size.
 
void ResetMap ()
 Reset mapper.
 
void DynamicChangeSize (const Dataset *train_data, const Config *config, int cache_size, int total_size)
 
void ResetConfig (const Config *config)
 
bool Get (int idx, FeatureHistogram **out)
 Get data for the specific index.
 
void Move (int src_idx, int dst_idx)
 Move data from one index to another index.
 

Member Function Documentation

◆ Get()

bool LightGBM::HistogramPool::Get ( int  idx,
FeatureHistogram **  out 
)
inline

Get data for the specific index.

Parameters
idxwhich index want to get
outoutput data will store into this
Returns
True if this index is in the pool, False if this index is not in the pool

◆ Move()

void LightGBM::HistogramPool::Move ( int  src_idx,
int  dst_idx 
)
inline

Move data from one index to another index.

Parameters
src_idx
dst_idx

◆ Reset()

void LightGBM::HistogramPool::Reset ( int  cache_size,
int  total_size 
)
inline

Reset pool size.

Parameters
cache_sizeMax cache size
total_sizeTotal size will be used

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