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

Method Check

catboost/libs/data/objects.cpp:253–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void NCB::TCommonObjectsData::Check(TMaybe<TObjectsGroupingPtr> objectsGrouping) const {
254 CB_ENSURE_INTERNAL(FeaturesLayout, "FeaturesLayout is undefined");
255 if (objectsGrouping.Defined()) {
256 CheckDataSize(
257 (*objectsGrouping)->GetObjectCount(),
258 SubsetIndexing->Size(),
259 "objectsGrouping's object count",
260 false,
261 "SubsetIndexing's Size"
262 );
263 }
264 if (StoreStringColumns) {
265 CheckGroupIds<TString>(SubsetIndexing->Size(), GroupIds.GetMaybeStringData(), objectsGrouping);
266 } else {
267 CheckGroupIds<TGroupId>(SubsetIndexing->Size(), GroupIds.GetMaybeNumData(), objectsGrouping);
268 }
269 CheckAllExceptGroupIds();
270}
271
272NCB::TCommonObjectsData NCB::TCommonObjectsData::GetSubset(
273 const TObjectsGroupingSubset& objectsGroupingSubset,

Callers 1

TObjectsDataProviderMethod · 0.45

Calls 15

CheckDataSizeFunction · 0.85
CheckDataSizesFunction · 0.85
Y_UNUSEDFunction · 0.85
ExecRangeWithThrowMethod · 0.80
ForEachNonDefaultMethod · 0.80
HexClass · 0.50
DefinedMethod · 0.45
GetObjectCountMethod · 0.45
SizeMethod · 0.45
sizeMethod · 0.45
GetMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected