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

Function LGBM_DatasetGetFieldSize_R

src/lightgbm_R.cpp:251–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251LGBM_SE LGBM_DatasetGetFieldSize_R(LGBM_SE handle,
252 LGBM_SE field_name,
253 LGBM_SE out,
254 LGBM_SE call_state) {
255 R_API_BEGIN();
256 const char* name = R_CHAR_PTR(field_name);
257 int out_len = 0;
258 int out_type = 0;
259 const void* res;
260 CHECK_CALL(LGBM_DatasetGetField(R_GET_PTR(handle), name, &out_len, &res, &out_type));
261 if (!strcmp("group", name) || !strcmp("query", name)) {
262 out_len -= 1;
263 }
264 R_INT_PTR(out)[0] = static_cast<int>(out_len);
265 R_API_END();
266}
267
268LGBM_SE LGBM_DatasetUpdateParam_R(LGBM_SE handle,
269 LGBM_SE params,

Callers

nothing calls this directly

Calls 2

LGBM_DatasetGetFieldFunction · 0.70
R_GET_PTRFunction · 0.50

Tested by

no test coverage detected