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

Method Split

library/cpp/grid_creator/binarization.cpp:1387–1395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1385 }
1386
1387 TFeatureBin Split() {
1388 if (!CanSplit()) {
1389 throw yexception() << "Can't add new split";
1390 }
1391 TFeatureBin left = TFeatureBin(BinStart, BestSplit, FeaturesStart);
1392 BinStart = BestSplit;
1393 UpdateBestSplitProperties();
1394 return left;
1395 }
1396
1397 private:
1398 double CalcSplitScore(ui32 splitPos) const {

Callers 5

GreedySplitFunction · 0.45
GenerateZshMethod · 0.45
HandleOptMethod · 0.45
HandleOptMethod · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 2

yexceptionClass · 0.85
TFeatureBinClass · 0.85

Tested by

no test coverage detected