dense feature vector that can be taken by RegTree and can be construct from sparse feature vector.
More...
#include <tree_model.h>
dense feature vector that can be taken by RegTree and can be construct from sparse feature vector.
◆ Drop()
void xgboost::RegTree::FVec::Drop |
( |
| ) |
|
|
inline |
drop the trace after fill, must be called after fill.
- Parameters
-
inst | The sparse instance to drop. |
◆ Fill()
fill the vector with sparse vector
- Parameters
-
inst | The sparse instance to fill. |
◆ GetFvalue()
bst_float xgboost::RegTree::FVec::GetFvalue |
( |
size_t |
i | ) |
const |
|
inline |
get ith value
- Parameters
-
- Returns
- the i-th feature value
◆ HasMissing()
bool xgboost::RegTree::FVec::HasMissing |
( |
| ) |
const |
|
inline |
◆ Init()
void xgboost::RegTree::FVec::Init |
( |
size_t |
size | ) |
|
|
inline |
initialize the vector with size vector
- Parameters
-
size | The size of the feature vector. |
◆ IsMissing()
bool xgboost::RegTree::FVec::IsMissing |
( |
size_t |
i | ) |
const |
|
inline |
check whether i-th entry is missing
- Parameters
-
- Returns
- whether i-th value is missing.
◆ Size()
size_t xgboost::RegTree::FVec::Size |
( |
| ) |
const |
|
inline |
returns the size of the feature vector
- Returns
- the size of the feature vector
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/xgboost/checkouts/latest/include/xgboost/tree_model.h