Feature map data structure to help text model dump. TODO(tqchen) consider make it even more lightweight.
More...
#include <feature_map.h>
|
void | LoadText (std::istream &is) |
| load feature map from input stream More...
|
|
void | PushBack (int fid, const char *fname, const char *ftype) |
| push back feature map. More...
|
|
void | Clear () |
| clear the feature map More...
|
|
size_t | Size () const |
|
const char * | Name (size_t idx) const |
|
Type | TypeOf (size_t idx) const |
|
Feature map data structure to help text model dump. TODO(tqchen) consider make it even more lightweight.
◆ Type
type of feature maps
Enumerator |
---|
kIndicator | |
kQuantitive | |
kInteger | |
kFloat | |
kCategorical | |
◆ Clear()
void xgboost::FeatureMap::Clear |
( |
| ) |
|
|
inline |
◆ LoadText()
void xgboost::FeatureMap::LoadText |
( |
std::istream & |
is | ) |
|
|
inline |
load feature map from input stream
- Parameters
-
◆ Name()
const char* xgboost::FeatureMap::Name |
( |
size_t |
idx | ) |
const |
|
inline |
- Returns
- name of specific feature
◆ PushBack()
void xgboost::FeatureMap::PushBack |
( |
int |
fid, |
|
|
const char * |
fname, |
|
|
const char * |
ftype |
|
) |
| |
|
inline |
push back feature map.
- Parameters
-
fid | The feature index. |
fname | The feature name. |
ftype | The feature type. |
◆ Size()
size_t xgboost::FeatureMap::Size |
( |
| ) |
const |
|
inline |
- Returns
- number of known features
◆ TypeOf()
Type xgboost::FeatureMap::TypeOf |
( |
size_t |
idx | ) |
const |
|
inline |
- Returns
- type of specific feature
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/xgboost/checkouts/stable/include/xgboost/feature_map.h