Medial Code Documentation
|
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 | |
Element from a sparse vector.
|
inline |
constructor with index and value
index | The feature or row index. |
fvalue | The feature value. |