Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
xgboost::Entry Struct Reference

Element from a sparse vector. More...

#include <data.h>

Public Member Functions

 Entry ()=default
 default constructor
 
XGBOOST_DEVICE Entry (bst_feature_t index, bst_float fvalue)
 constructor with index and value
 
bool operator== (const Entry &other) const
 

Static Public Member Functions

static bool CmpValue (const Entry &a, const Entry &b)
 reversely compare feature values
 
static bool CmpIndex (Entry const &a, Entry const &b)
 

Data Fields

bst_feature_t index
 feature index
 
bst_float fvalue
 feature value
 

Detailed Description

Element from a sparse vector.

Constructor & Destructor Documentation

◆ Entry()

XGBOOST_DEVICE xgboost::Entry::Entry ( bst_feature_t  index,
bst_float  fvalue 
)
inline

constructor with index and value

Parameters
indexThe feature or row index.
fvalueThe feature value.

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