MCPcopy Create free account
hub / github.com/catboost/catboost / SetSubgroupIds

Method SetSubgroupIds

catboost/libs/data/objects.cpp:404–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void NCB::TObjectsDataProvider::SetSubgroupIds(TConstArrayRef<TSubgroupId> subgroupIds) {
405 CheckDataSize(subgroupIds.size(), (size_t)GetObjectCount(), "subgroupIds");
406 auto& subgroupIds_ = CommonData.SubgroupIds.GetMaybeNumData();
407 if (!subgroupIds_) {
408 subgroupIds_.ConstructInPlace(subgroupIds.begin(), subgroupIds.end());
409 } else {
410 subgroupIds_->assign(subgroupIds.begin(), subgroupIds.end());
411 }
412}
413
414void NCB::TObjectsDataProvider::SetTimestamps(TConstArrayRef<ui64> timestamps) {
415 CheckDataSize(timestamps.size(), (size_t)GetObjectCount(), "timestamps");

Callers

nothing calls this directly

Calls 11

CheckDataSizeFunction · 0.85
GetObjectCountFunction · 0.85
xrangeFunction · 0.85
CalcSubgroupIdForFunction · 0.85
yresizeMethod · 0.80
moveFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
assignMethod · 0.45
IsDefinedMethod · 0.45

Tested by

no test coverage detected