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

Method BestSplit

library/cpp/grid_creator/binarization.cpp:1151–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1149
1150template <EPenaltyType PenaltyType>
1151TQuantization TExactBinarizer<PenaltyType>::BestSplit(
1152 TFeatureValues&& features,
1153 int maxBordersCount,
1154 TMaybe<float> quantizedDefaultBinFraction,
1155 const TMaybe<TVector<float>>& initialBorders) const {
1156
1157 return SplitWithGuaranteedOptimum<PenaltyType>(
1158 std::move(features),
1159 initialBorders,
1160 maxBordersCount,
1161 quantizedDefaultBinFraction);
1162}
1163
1164
1165static void SortValuesAndInsertDefault(

Callers 2

BestSplitFunction · 0.80
BuildBordersMethod · 0.80

Calls 15

GenerateMedianBordersFunction · 0.85
TQuantizationClass · 0.85
RegularBorderFunction · 0.85
MinMaxElementFunction · 0.85
LowerBoundFunction · 0.85
UpperBoundFunction · 0.85
GroupAndSortValuesFunction · 0.85
GreedySplitFunction · 0.85

Tested by

no test coverage detected