dense feature vector that can be taken by RegTree and can be construct from sparse feature vector.
More...
#include <tree_model.h>
|
| void | Init (size_t size) |
| | initialize the vector with size vector
|
| |
| void | Fill (const SparsePage::Inst &inst) |
| | fill the vector with sparse vector
|
| |
| void | Drop () |
| | drop the trace after fill, must be called after fill.
|
| |
| size_t | Size () const |
| | returns the size of the feature vector
|
| |
| bst_float | GetFvalue (size_t i) const |
| | get ith value
|
| |
| bool | IsMissing (size_t i) const |
| | check whether i-th entry is missing
|
| |
|
bool | HasMissing () const |
| |
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
◆ 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: