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

Function GetTotalWeight

catboost/libs/monoforest/interpretation.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 static double GetTotalWeight(const TPolynom& polynom) {
26 for (const auto& [structure, stat] : polynom.MonomsEnsemble) {
27 if (structure.Splits.empty()) {
28 return stat.Weight;
29 }
30 }
31 CB_ENSURE(false, "Failed to get total weight");
32 }
33
34 static TVector<TVector<double>> GetBorderWeights(const TPolynom& polynom, const IGrid& grid) {
35 TVector<TVector<double>> weightForBorder(grid.FeatureCount());

Callers 5

ExplainFeaturesFunction · 0.85
ComputeStatsMethod · 0.85
ComputeStatsMethod · 0.85
ComputeStatsMethod · 0.85
ComputeStatsMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected