MCPcopy Create free account
hub / github.com/dmlc/xgboost / LoadFeatureMap

Function LoadFeatureMap

src/c_api/c_api_utils.h:201–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199};
200
201inline FeatureMap LoadFeatureMap(std::string const& uri) {
202 FeatureMap feat;
203 if (uri.size() != 0) {
204 std::unique_ptr<dmlc::Stream> fs(dmlc::Stream::Create(uri.c_str(), "r"));
205 dmlc::istream is(fs.get());
206 feat.LoadText(is);
207 }
208 return feat;
209}
210
211inline void GenerateFeatureMap(Learner const *learner,
212 std::vector<Json> const &custom_feature_names,

Callers 2

XGBoosterDumpModelExFunction · 0.85
XGBoosterFeatureScoreFunction · 0.85

Calls 4

c_strMethod · 0.80
LoadTextMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected