MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / LGBM_DatasetSetFeatureNames_R

Function LGBM_DatasetSetFeatureNames_R

src/lightgbm_R.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132LGBM_SE LGBM_DatasetSetFeatureNames_R(LGBM_SE handle,
133 LGBM_SE feature_names,
134 LGBM_SE call_state) {
135 R_API_BEGIN();
136 auto vec_names = Common::Split(R_CHAR_PTR(feature_names), '\t');
137 std::vector<const char*> vec_sptr;
138 int len = static_cast<int>(vec_names.size());
139 for (int i = 0; i < len; ++i) {
140 vec_sptr.push_back(vec_names[i].c_str());
141 }
142 CHECK_CALL(LGBM_DatasetSetFeatureNames(R_GET_PTR(handle),
143 vec_sptr.data(), len));
144 R_API_END();
145}
146
147LGBM_SE LGBM_DatasetGetFeatureNames_R(LGBM_SE handle,
148 LGBM_SE buf_len,

Callers

nothing calls this directly

Calls 6

push_backMethod · 0.80
dataMethod · 0.80
SplitFunction · 0.50
R_GET_PTRFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected